Commit Graph

2501 Commits

Author SHA1 Message Date
sgjesse@google.com 6d0e1d79c5 Add console to dart:io for synchronus writing to stdout and stderr
This is provided as a fallback for applications relying synchronus
writing to stdout/stderr, which was changed to be async in r41436.

R=iposva@google.com
BUG=

Review URL: https://codereview.chromium.org//733463002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41801 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-18 14:07:59 +00:00
koda@google.com c6bf5f2381 Support verified heap pointer writes on x64.
Port of r41607, r41700, and upcoming change:
https://codereview.chromium.org/721233002/

R=iposva@google.com

Review URL: https://codereview.chromium.org//727623002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41787 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-17 18:09:42 +00:00
koda@google.com a38ffcc069 Reduce live size of test of write barrier verification.
TBR=iposva@google.com

Review URL: https://codereview.chromium.org//726453002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41703 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 05:44:26 +00:00
koda@google.com f72a8059ea Decrease size of test of write barrier verification.
It was close to timing out on Linux, and failing on Windows, likely due to OOM.

TBR=iposva@google.com

Review URL: https://codereview.chromium.org//723893002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41702 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-13 02:53:48 +00:00
koda@google.com 8479136580 Support verified heap pointer writes on ia32.
With --verified_mem, use VerifiedMemory to duplicate all pointer writes in the heap, and verify that no unaccounted writes occurred.

R=iposva@google.com

Review URL: https://codereview.chromium.org//711833002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41700 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-12 23:47:42 +00:00
eernst@google.com 93f4f00719 Working insertion of hash values; added a few labels in spec
Hash values are now computed for each "paragraph" starting with \LMHash
(which includes subsequent grammar, dartCode, itemize blocks, but stops
at \section-like commands).  Now addlatexhash.dart expects three arguments
(first the source latex file, then the destination simplified and
hash-value-annotated latex source file, and finally a file name used to
create the list of hash values emitted).  Adjusted testing accordingly.
Added a test for robustness of the hash value generation: It is checked
that lots of different "unimportant" changes make no difference for the
generated hash values (e.g., we can add/remove comments, change white
space, add \commentary{..} etc. without changing the hash values).

In order to ensure that all "structure" commands in the spec have a label,
I added an \LMLabel{..} a handful of places, following the style which is
used throughout the spec.

In dart.sty, the \renewcommand that made \LMHash{} produce a fixed
hash value has been removed such that the actual hash values are now
inserted into the generated spec PDF/DVI file.  Tests have been adjusted
to handle this difference between the spec with and without hash values
when comparing the two.

R=gbracha@google.com, lrn@google.com, ricow@google.com

Committed: https://code.google.com/p/dart/source/detail?r=41658

Reverted: https://code.google.com/p/dart/source/detail?r=41662

Review URL: https://codereview.chromium.org//652993005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41687 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-12 08:41:55 +00:00
eernst@google.com 4074b50818 Revert "Working insertion of hash values; added a few labels in spec"
This reverts commit r41658.

Review URL: https://codereview.chromium.org//714883002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41662 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 11:39:40 +00:00
eernst@google.com 9570a582eb Working insertion of hash values; added a few labels in spec
Hash values are now computed for each "paragraph" starting with \LMHash
(which includes subsequent grammar, dartCode, itemize blocks, but stops
at \section-like commands).  Now addlatexhash.dart expects three arguments
(first the source latex file, then the destination simplified and
hash-value-annotated latex source file, and finally a file name used to
create the list of hash values emitted).  Adjusted testing accordingly.
Added a test for robustness of the hash value generation: It is checked
that lots of different "unimportant" changes make no difference for the
generated hash values (e.g., we can add/remove comments, change white
space, add \commentary{..} etc. without changing the hash values).

In order to ensure that all "structure" commands in the spec have a label,
I added an \LMLabel{..} a handful of places, following the style which is
used throughout the spec.

In dart.sty, the \renewcommand that made \LMHash{} produce a fixed
hash value has been removed such that the actual hash values are now
inserted into the generated spec PDF/DVI file.  Tests have been adjusted
to handle this difference between the spec with and without hash values
when comparing the two.

R=gbracha@google.com, lrn@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//652993005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41658 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-11 10:08:12 +00:00
zra@google.com 4de61e70d3 Adds extra validation to code collection test.
R=iposva@google.com

Review URL: https://codereview.chromium.org//710093002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41644 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 19:15:27 +00:00
kustermann@google.com 53cc8c512d Support for the ALPN extension of the TLS protocol for Client and Server
This CL uses the NSS support for the ALPN extension of the TLS protocol
(see RFC 7301).

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//625953002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41628 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-10 12:31:02 +00:00
koda@google.com fded2906b8 Make priority_queue_stress_test pass analyzer.
BUG=21468
R=whesse@google.com

Review URL: https://codereview.chromium.org//701223003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41559 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-06 14:17:37 +00:00
ajohnsen@google.com 8240d9a4cf Only lower-case ContentType's values if the name is 'charset'.
BUG=https://code.google.com/p/dart/issues/detail?id=21385
R=lrn@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//694293002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41456 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-03 12:34:08 +00:00
whesse@google.com 3da2c473cd Update status for vm and analyzer.
BUG=dartbug.com/21468 dartbug.com/21469
R=ricow@google.com

Review URL: https://codereview.chromium.org//684133006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41418 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-30 12:33:50 +00:00
koda@google.com 36a6dd4201 Context objects don't have a compile-type. Return dynamic-type in this case.
This is lifted from
https://codereview.chromium.org/678763004/diff/120001/runtime/vm/flow_graph_type_propagator.cc
to fix issue 21455.


BUG=21455
R=vegorov@google.com

Review URL: https://codereview.chromium.org//689713003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41406 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-29 21:34:59 +00:00
kustermann@google.com 360dfe4f41 Several bugfixes in dart:io's handing of sockets
This CL includes fixes for the following issues:

a) The event handler created listening socket metadata (values of a hashtable
indexed by filedescriptor) sometimes as SocketData and sometimes as
ListeningSocketData depending whether the socket has been listened to or not.
This was very buggy, in particular because multiple isolates can have a
reference to the same server socket in different states (opened, listened,
closed).

=> This should be fixed by sending the file descriptior typeMask always to the
   eventhandler.

b) A server socket cloned via the ServerSocketReference mechanism, opens a
receive port for sending (fd, address, port) to isolates/... which want to
create a server socket from the reference.
This receive port was not closed properly when calling only close() (and not
listening first).

=> This should be fixed by closing this receiveport on the ServerSocket.close()
   call as well.

c) It was assumed in the event handler that a close command needs to have the
Dart_Port in a hash table. But this is only the case if the user actually
listened to the ServerSocket. Otherwise the event handler does not know about
the server socket. This caused a NULL dereference which resulted in a SEGFAULT.

=> This should be fixed by checking if the Dart_Port is in the hashmap of the
ListeningSocketData or not.

d) Too many bits were considered when extracting token count in C++ code.

The CL includes a regression test which should trigger these issues.

BUG=21384,21383
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//665823007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41276 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-24 08:55:50 +00:00
ricow@google.com b1ecf1649c Revert revision 41241
Issue 21387  seems to have already been fixed in 41240

Review URL: https://codereview.chromium.org//636283008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41242 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-22 05:56:53 +00:00
ricow@google.com 7e26df4bbc Mark standalone/vmservice/websocket_client_test as flaky on the vm
Filed issue 21387 to track this

R=iposva@google.com

Review URL: https://codereview.chromium.org//667383002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41241 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-22 05:48:39 +00:00
johnmccutchan@google.com f71ac3843c Ignore GC events in websocket_client_test
BUG=
R=turnidge@google.com

Review URL: https://codereview.chromium.org//671603006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41240 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-21 21:43:14 +00:00
iposva@google.com 3feded1f47 - Rename flags to reflect the generation impacted.
R=koda@google.com

Review URL: https://codereview.chromium.org//668473002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41202 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-20 15:26:04 +00:00
eernst@google.com bf339367c3 Introduced hash valued location markers in the spec
Introduced support for adding SHA1 hash valued location markers
at several levels in the language specification, added long explanatory
comment at the end, added a script 'addlatexhash.dart' to normalize
spacing, remove comments, etc., in the spec, such that the hash values
are more robust than they would be with a direct usage of the spec.

The script passes the "dvi2tty test", that is, when the location markers
are empty, the resulting *.dvi files created from dartLangSpec.tex and
from the version processed by the script give rise to the same text via
dvi2tty, i.e., the script does not destroy the spec.

R=gbracha@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//646003002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41191 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-20 14:02:23 +00:00
whesse@google.com 3430239194 Add additional check to vmservice/websocket_client test.
Fix type errors in update_homebrew script.

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org//652833005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41166 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-17 12:11:27 +00:00
whesse@google.com 6650aeb3d6 Clean up test_runner Command subclass hash/equality.
BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//645533002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41037 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-10 12:05:52 +00:00
vegorov@google.com 44203f8aeb Silence analyzer warnings in array_bounds_check_generalization_test.
TBR=fschneider@google.com

Review URL: https://codereview.chromium.org//631143003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40973 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 19:38:16 +00:00
vegorov@google.com e6113cc0f5 If bounds check 0 <= index < length is not redundant we attempt to
replace it with a sequence of checks that guarantee

          0 <= LowerBound(index) < UpperBound(index) < length

and hoist all of those checks out of the enclosing loop.

Upper/Lower bounds are symbolic arithmetic expressions with +, -, *
operations and are computed based on discovered simple induction variables.

Simple induction variable is a variable that follows the pattern v1 <- phi(v0, v1 + 1)

BUG=
R=fschneider@google.com

Review URL: https://codereview.chromium.org//619903002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40969 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-07 18:50:29 +00:00
kustermann@google.com 9dbe8119a3 Use less data for regression_21160_test to eliminate simulator timeouts
R=whesse@google.com

Review URL: https://codereview.chromium.org//609893003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40814 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-30 15:42:22 +00:00
kustermann@google.com e6e8fd93fc Fix circular ringbuffer used in socket implementation
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//615923002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40811 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-30 13:19:36 +00:00
ajohnsen@google.com 35fb108468 Add HttpServer:autoCompress option, to disable auto gzip compression.
BUG=
R=lrn@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//598453003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40587 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-23 11:08:24 +00:00
regis@google.com 47d36bf443 Skip vm standalone tests failing for drt runtime as well.
R=vsm@google.com

Review URL: https://codereview.chromium.org//573043002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40347 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-16 21:13:33 +00:00
ajohnsen@google.com 9dd4df6f9a Fix datagram issue where available is not correctly updated upon receive.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//569173003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40235 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-15 08:21:44 +00:00
scheglov@google.com 778536d97c Issue 19682. New analyzer snapshot that fixes an inline refactoring problem.
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=19682

Review URL: https://codereview.chromium.org//561373002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40193 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-11 22:47:29 +00:00
zra@google.com 0f6c47ab78 Delays creating a snapshot file until after the snapshot is created.
R=iposva@google.com

Review URL: https://codereview.chromium.org//499743002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39998 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-08 20:52:25 +00:00
turnidge@google.com 8a3c490f6b Add a new Sentinel type for sentinel responses. (They are not Null).
Fix some stray problems.

Silence warnings about stray GC events.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org//514833003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39663 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 16:52:01 +00:00
kustermann@google.com c86e1ab989 Mark http_client_stays_alive_test as skip on MIPS debug
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//517573002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39650 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 12:40:34 +00:00
kustermann@google.com 1ce303fa80 Bugfix in dart:io's WebSocketTransformer implementation, correctly test async behaviour of websocket, some test cleanup
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//517513002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39641 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-28 10:44:46 +00:00
asiva@google.com fb5d976edc Landing change from Zach for adding snapshot version numbers.
(Add a version number for full and script snapshots.
 Currently the VM version string is used for versioning. This can
 potentially be improved to use a version string that tracks the format
 of the internal VM structures.)

Review URL: https://codereview.chromium.org//506753003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39612 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 18:27:51 +00:00
turnidge@google.com beebba4624 More service api cleanup.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//488233003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39609 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 17:13:31 +00:00
mlippautz@google.com c65636490f Fix conditionally parsing await as keyword.
BUG=
R=hausner@google.com

Review URL: https://codereview.chromium.org//507233002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39602 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 16:22:52 +00:00
vegorov@google.com 9f9e250e92 Support Int32 representation for selected binary operations.
BUG=
R=fschneider@google.com

Review URL: https://codereview.chromium.org//504143003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39595 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 14:49:19 +00:00
mlippautz@google.com d7943b4029 Revert "Fix scope/context behavior in await transformer."
This reverts commit fb220928acc36cc9078f905bb185b4c32b9a5608.

BUG=

Review URL: https://codereview.chromium.org//511483003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39573 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 00:10:45 +00:00
mlippautz@google.com 3a46e60f17 Fix scope/context behavior in await transformer.
We are not allowed to reuse LocalScope in different SequenceNode_s. The problem is that if a context needs to be created for that scope the FlowGraphbuilder will insert context creation code at all SequenNoce_s that use this scope. This results in scopes and contexts being out of sync and writing garbage. The fix is to just chain a new scope that is on the same function- and loop-level.

Also fix recognizing of "await" in async functions. A follow up CL will enable await in loops, if, return, ...

BUG=
R=hausner@google.com

Review URL: https://codereview.chromium.org//508643004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39571 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-26 23:01:58 +00:00
mlippautz@google.com 7c7919f8ef Await it!
Add support for awaiting futures. This leaves us with a non-structural CFG.

TODOs:
* Forwarding exceptions through futures in async functions and rethrowing them using await.
* Known bug with nested contexts (will be fixed in following CL)
* await is not recognized at all expressions specified (yet)

BUG=
R=hausner@google.com, srdjan@google.com

Review URL: https://codereview.chromium.org//484933003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39559 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-26 17:35:56 +00:00
kustermann@google.com f4b5192a59 Increase timeout from 2 to 10 seconds
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//492743003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39544 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-26 10:32:27 +00:00
kustermann@google.com 705b05c93d Fix idle connection pool issue in dart:io's HttpClient
So far if all connections in the connection pool of an http client were idle,
the idle connections were closed after 100ms. This goes obviously against the
idea of having a connection pool to avoid repeated reconnects. If a client makes
a request, does some work for 110 ms and makes another request, the idle
connection would be gone and it would reconnect.

When a user is done with an HttpClient and called close() on it the HTTP client
would in certain cases still sit around for another 100ms before closing all
connections. For command line applications this might delay the time when the VM
exists.

This 100ms idle connection pool timeout was hard-coded and not changeable. There
is still a idle timeout on a connection basis, defaulting to 15 seconds.

This CL removes the mentioned 100ms timer and has 2 consequences:
a) A connection stays in the pool for 15 seconds by default.
b) The idle connections will be closed immediately if HttpClient.close() was
called.

Users who relied on the behaviour of a VM shutdown after 100ms without calling
HttpClient.close() are broken and must be fixed.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//486853005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39542 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-26 09:46:38 +00:00
turnidge@google.com 4d5f3ba638 vmservice protocol cleanup
user_name -> name
name -> vmName

Also, vmName is now only provided when it differs from name.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//487023003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39525 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-25 18:53:43 +00:00
fschneider@google.com 4983823977 VM: Improve performance of method recognizer and unify the it with the intrinsifier.
The method recognizer is now in a separate file and the intrinsifier uses the
same infrastructure. Each function is marked at initialization time, so that
recognizing a method is a fast operation (reading a field from the Function object)

I cleaned the symbol table from unused symbols since I had to regenerate the
binary snapshot in the repository anyway for this change.

I had to rename the methods that are duplicated between the recognized method list
and the intrinsics list to match the naming convention used by the method recognizer.
I left the other intrinsics unchanged for now. They will be renamed in a future CL.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//468793004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39444 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-21 10:21:09 +00:00
mlippautz@google.com 661ed0608f Fix leftovers from await CL.
* Regenerating snapshot and commiting using SVN
* int -> int32_t (format %d stays, as similar examplces in object.cc/.h exist)



git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39351 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-18 20:31:26 +00:00
mlippautz@google.com 29e049a90e Fix broken build caused by snapshot regression test
Added symbols in the last CL that might impact snapshot

BUG=

Review URL: https://codereview.chromium.org//481103002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39347 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-18 19:41:07 +00:00
asiva@google.com bf9906cf51 Revert r39246 which reverted r39101
R=koda@google.com

Review URL: https://codereview.chromium.org//474073002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39272 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-14 22:06:54 +00:00
ricow@google.com c92b022598 Revert revision 39101 "Avoid linear search for function lookup."
This is causing breakage of the pop pop win sample.

For details see issue 20517

This revert had a minor merge conflict for a todo comment

R=kasperl@google.com

Review URL: https://codereview.chromium.org//471843003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39246 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-14 12:39:07 +00:00
sgjesse@google.com ac911ff0bf Make the default HTTP server configuration more secure
Add a mechanism for setting default headers to add to all responses.

By default each the HTTP response now will contain the following headers:

  Content-Type: text/plain; charset=utf-8
  X-Frame-Options: SAMEORIGIN
  X-Content-Type-Options: nosniff
  X-XSS-Protection: 1; mode=block

New cookies created are now 'httpOnly' by default.

BUG=http://dartbug.com/19676
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//443373003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39118 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-12 07:12:03 +00:00