Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: vm/object_test.cc

Issue 10782016: Enforce length/size limits for variable size heap object in order to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« vm/object.cc ('K') | « vm/object.cc ('k') | vm/os.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/object_store.h" 10 #include "vm/object_store.h"
(...skipping 2763 matching lines...) Expand 10 before | Expand all | Expand 10 after
2774 bare_name = String::New("foo.named"); 2774 bare_name = String::New("foo.named");
2775 EXPECT(!EqualsIgnoringPrivate(mangled_name, bare_name)); 2775 EXPECT(!EqualsIgnoringPrivate(mangled_name, bare_name));
2776 2776
2777 // Named double-private constructor mismatch. 2777 // Named double-private constructor mismatch.
2778 mangled_name = String::New("foo@12345.named@12345"); 2778 mangled_name = String::New("foo@12345.named@12345");
2779 bare_name = String::New("foo.name"); 2779 bare_name = String::New("foo.name");
2780 EXPECT(!EqualsIgnoringPrivate(mangled_name, bare_name)); 2780 EXPECT(!EqualsIgnoringPrivate(mangled_name, bare_name));
2781 } 2781 }
2782 2782
2783 2783
2784 TEST_CASE(ArrayNew_Overflow_Crash) {
2785 Array::Handle(Array::New(Array::kMaxElements + 1));
2786 }
2787
2788
2784 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 2789 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
2785 2790
2786 } // namespace dart 2791 } // namespace dart
OLDNEW
« vm/object.cc ('K') | « vm/object.cc ('k') | vm/os.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698