| 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 // The intrinsic code below is executed before a method has built its frame. | 5 // The intrinsic code below is executed before a method has built its frame. |
| 6 // The return address is on the stack and the arguments below it. | 6 // The return address is on the stack and the arguments below it. |
| 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. | 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. |
| 8 // Each intrinsification method returns true if the corresponding | 8 // Each intrinsification method returns true if the corresponding |
| 9 // Dart method was intrinsified. | 9 // Dart method was intrinsified. |
| 10 | 10 |
| 11 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 11 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 12 #if defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME) | 12 #if defined(TARGET_ARCH_IA32) |
| 13 | 13 |
| 14 #include "vm/intrinsifier.h" | 14 #include "vm/intrinsifier.h" |
| 15 | 15 |
| 16 #include "vm/assembler.h" | 16 #include "vm/assembler.h" |
| 17 #include "vm/dart_entry.h" | 17 #include "vm/dart_entry.h" |
| 18 #include "vm/flow_graph_compiler.h" | 18 #include "vm/flow_graph_compiler.h" |
| 19 #include "vm/object.h" | 19 #include "vm/object.h" |
| 20 #include "vm/object_store.h" | 20 #include "vm/object_store.h" |
| 21 #include "vm/os.h" | 21 #include "vm/os.h" |
| 22 #include "vm/regexp_assembler.h" | 22 #include "vm/regexp_assembler.h" |
| (...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 void Intrinsifier::SetAsyncThreadStackTrace(Assembler* assembler) { | 2238 void Intrinsifier::SetAsyncThreadStackTrace(Assembler* assembler) { |
| 2239 __ movl(Address(THR, Thread::async_stack_trace_offset()), EAX); | 2239 __ movl(Address(THR, Thread::async_stack_trace_offset()), EAX); |
| 2240 __ LoadObject(EAX, Object::null_object()); | 2240 __ LoadObject(EAX, Object::null_object()); |
| 2241 __ ret(); | 2241 __ ret(); |
| 2242 } | 2242 } |
| 2243 | 2243 |
| 2244 #undef __ | 2244 #undef __ |
| 2245 | 2245 |
| 2246 } // namespace dart | 2246 } // namespace dart |
| 2247 | 2247 |
| 2248 #endif // defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME) | 2248 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |