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

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

Issue 13874010: Merge JumpToErrorHandler and JumpToExceptionHandler stubs on all architectures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/stub_code_arm.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_STUB_CODE_H_ 5 #ifndef VM_STUB_CODE_H_
6 #define VM_STUB_CODE_H_ 6 #define VM_STUB_CODE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 10
(...skipping 20 matching lines...) Expand all
31 V(FixCallersTarget) \ 31 V(FixCallersTarget) \
32 V(Deoptimize) \ 32 V(Deoptimize) \
33 V(DeoptimizeLazy) \ 33 V(DeoptimizeLazy) \
34 V(BreakpointStatic) \ 34 V(BreakpointStatic) \
35 V(BreakpointReturn) \ 35 V(BreakpointReturn) \
36 V(Subtype1TestCache) \ 36 V(Subtype1TestCache) \
37 V(Subtype2TestCache) \ 37 V(Subtype2TestCache) \
38 V(Subtype3TestCache) \ 38 V(Subtype3TestCache) \
39 V(GetStackPointer) \ 39 V(GetStackPointer) \
40 V(JumpToExceptionHandler) \ 40 V(JumpToExceptionHandler) \
41 V(JumpToErrorHandler) \
42 V(IdenticalWithNumberCheck) \ 41 V(IdenticalWithNumberCheck) \
43 42
44 // Is it permitted for the stubs above to refer to Object::null(), which is 43 // Is it permitted for the stubs above to refer to Object::null(), which is
45 // allocated in the VM isolate and shared across all isolates. 44 // allocated in the VM isolate and shared across all isolates.
46 // However, in cases where a simple GC-safe placeholder is needed on the stack, 45 // However, in cases where a simple GC-safe placeholder is needed on the stack,
47 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi 46 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi
48 // does not require relocation. 47 // does not require relocation.
49 48
50 // List of stubs created per isolate, these stubs could potentially contain 49 // List of stubs created per isolate, these stubs could potentially contain
51 // embedded objects and hence cannot be shared across isolates. 50 // embedded objects and hence cannot be shared across isolates.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, 193 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler,
195 intptr_t num_args); 194 intptr_t num_args);
196 static void GenerateUsageCounterIncrement(Assembler* assembler, 195 static void GenerateUsageCounterIncrement(Assembler* assembler,
197 Register temp_reg); 196 Register temp_reg);
198 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); 197 static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler);
199 }; 198 };
200 199
201 } // namespace dart 200 } // namespace dart
202 201
203 #endif // VM_STUB_CODE_H_ 202 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698