OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #define __ assembler-> | 22 #define __ assembler-> |
23 | 23 |
24 namespace dart { | 24 namespace dart { |
25 | 25 |
26 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); | 26 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); |
27 DEFINE_FLAG(bool, use_slow_path, false, | 27 DEFINE_FLAG(bool, use_slow_path, false, |
28 "Set to true for debugging & verifying the slow paths."); | 28 "Set to true for debugging & verifying the slow paths."); |
29 DECLARE_FLAG(bool, trace_optimized_ic_calls); | 29 DECLARE_FLAG(bool, trace_optimized_ic_calls); |
30 DECLARE_FLAG(int, optimization_counter_threshold); | 30 DECLARE_FLAG(int, optimization_counter_threshold); |
31 DECLARE_FLAG(bool, lazy_dispatchers); | |
32 | 31 |
33 #define INT32_SIZEOF(x) static_cast<int32_t>(sizeof(x)) | 32 #define INT32_SIZEOF(x) static_cast<int32_t>(sizeof(x)) |
34 | 33 |
35 // Input parameters: | 34 // Input parameters: |
36 // ESP : points to return address. | 35 // ESP : points to return address. |
37 // ESP + 4 : address of last argument in argument array. | 36 // ESP + 4 : address of last argument in argument array. |
38 // ESP + 4*EDX : address of first argument in argument array. | 37 // ESP + 4*EDX : address of first argument in argument array. |
39 // ESP + 4*EDX + 4 : address of return value. | 38 // ESP + 4*EDX + 4 : address of return value. |
40 // ECX : address of the runtime function to call. | 39 // ECX : address of the runtime function to call. |
41 // EDX : number of arguments to the call. | 40 // EDX : number of arguments to the call. |
(...skipping 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2086 // Result: | 2085 // Result: |
2087 // EBX: target entry point | 2086 // EBX: target entry point |
2088 // EDX: arguments descriptor | 2087 // EDX: arguments descriptor |
2089 void StubCode::GenerateICLookupStub(Assembler* assembler) { | 2088 void StubCode::GenerateICLookupStub(Assembler* assembler) { |
2090 __ int3(); | 2089 __ int3(); |
2091 } | 2090 } |
2092 | 2091 |
2093 } // namespace dart | 2092 } // namespace dart |
2094 | 2093 |
2095 #endif // defined TARGET_ARCH_IA32 | 2094 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |