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

Side by Side Diff: runtime/vm/code_generator.h

Issue 10280007: Check upper bounds of type arguments when allocating objects of a generic type (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
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 #ifndef VM_CODE_GENERATOR_H_ 5 #ifndef VM_CODE_GENERATOR_H_
6 #define VM_CODE_GENERATOR_H_ 6 #define VM_CODE_GENERATOR_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/runtime_entry.h" 9 #include "vm/runtime_entry.h"
10 10
11 #if defined(TARGET_ARCH_IA32) 11 #if defined(TARGET_ARCH_IA32)
12 #include "vm/code_generator_ia32.h" 12 #include "vm/code_generator_ia32.h"
13 #elif defined(TARGET_ARCH_X64) 13 #elif defined(TARGET_ARCH_X64)
14 #include "vm/code_generator_x64.h" 14 #include "vm/code_generator_x64.h"
15 #elif defined(TARGET_ARCH_ARM) 15 #elif defined(TARGET_ARCH_ARM)
16 #include "vm/code_generator_arm.h" 16 #include "vm/code_generator_arm.h"
17 #else 17 #else
18 #error Unknown architecture. 18 #error Unknown architecture.
19 #endif 19 #endif
20 20
21 namespace dart { 21 namespace dart {
22 22
23 // Declaration of runtime entries called from stub or generated code. 23 // Declaration of runtime entries called from stub or generated code.
24 DECLARE_RUNTIME_ENTRY(AllocateArray); 24 DECLARE_RUNTIME_ENTRY(AllocateArray);
25 DECLARE_RUNTIME_ENTRY(AllocateClosure); 25 DECLARE_RUNTIME_ENTRY(AllocateClosure);
26 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); 26 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure);
27 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); 27 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure);
28 DECLARE_RUNTIME_ENTRY(AllocateContext); 28 DECLARE_RUNTIME_ENTRY(AllocateContext);
29 DECLARE_RUNTIME_ENTRY(AllocateObject); 29 DECLARE_RUNTIME_ENTRY(AllocateObject);
30 DECLARE_RUNTIME_ENTRY(AllocateObjectWithBoundsCheck);
30 DECLARE_RUNTIME_ENTRY(BreakpointStaticHandler); 31 DECLARE_RUNTIME_ENTRY(BreakpointStaticHandler);
31 DECLARE_RUNTIME_ENTRY(BreakpointReturnHandler); 32 DECLARE_RUNTIME_ENTRY(BreakpointReturnHandler);
32 DECLARE_RUNTIME_ENTRY(BreakpointDynamicHandler); 33 DECLARE_RUNTIME_ENTRY(BreakpointDynamicHandler);
33 DECLARE_RUNTIME_ENTRY(CloneContext); 34 DECLARE_RUNTIME_ENTRY(CloneContext);
34 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch); 35 DECLARE_RUNTIME_ENTRY(ClosureArgumentMismatch);
35 DECLARE_RUNTIME_ENTRY(Deoptimize); 36 DECLARE_RUNTIME_ENTRY(Deoptimize);
36 DECLARE_RUNTIME_ENTRY(FixCallersTarget); 37 DECLARE_RUNTIME_ENTRY(FixCallersTarget);
37 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg); 38 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerOneArg);
38 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs); 39 DECLARE_RUNTIME_ENTRY(InlineCacheMissHandlerTwoArgs);
39 DECLARE_RUNTIME_ENTRY(Instanceof); 40 DECLARE_RUNTIME_ENTRY(Instanceof);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 }; 137 };
137 }; 138 };
138 139
139 140
140 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, 141 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate,
141 const Instance& receiver); 142 const Instance& receiver);
142 143
143 } // namespace dart 144 } // namespace dart
144 145
145 #endif // VM_CODE_GENERATOR_H_ 146 #endif // VM_CODE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698