| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 if (object->IsHeapObject()) { | 291 if (object->IsHeapObject()) { |
| 292 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); | 292 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); |
| 293 } else { | 293 } else { |
| 294 cmp(reg, Immediate(object)); | 294 cmp(reg, Immediate(object)); |
| 295 } | 295 } |
| 296 } | 296 } |
| 297 | 297 |
| 298 // Compare the given value and the value of weak cell. | 298 // Compare the given value and the value of weak cell. |
| 299 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | 299 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); |
| 300 | 300 |
| 301 void GetWeakValue(Register value, Handle<WeakCell> cell); |
| 302 |
| 301 // Load the value of the weak cell in the value register. Branch to the given | 303 // Load the value of the weak cell in the value register. Branch to the given |
| 302 // miss label if the weak cell was cleared. | 304 // miss label if the weak cell was cleared. |
| 303 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 305 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
| 304 | 306 |
| 305 // --------------------------------------------------------------------------- | 307 // --------------------------------------------------------------------------- |
| 306 // JavaScript invokes | 308 // JavaScript invokes |
| 307 | 309 |
| 308 // Invoke the JavaScript function code by either calling or jumping. | 310 // Invoke the JavaScript function code by either calling or jumping. |
| 309 void InvokeCode(Register code, | 311 void InvokeCode(Register code, |
| 310 const ParameterCount& expected, | 312 const ParameterCount& expected, |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 } \ | 1093 } \ |
| 1092 masm-> | 1094 masm-> |
| 1093 #else | 1095 #else |
| 1094 #define ACCESS_MASM(masm) masm-> | 1096 #define ACCESS_MASM(masm) masm-> |
| 1095 #endif | 1097 #endif |
| 1096 | 1098 |
| 1097 | 1099 |
| 1098 } } // namespace v8::internal | 1100 } } // namespace v8::internal |
| 1099 | 1101 |
| 1100 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1102 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |