| 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); | 301 void GetWeakValue(Register value, Register scratch, Handle<WeakCell> cell); |
| 302 |
| 303 // Gets the given value without triggering the read barrier (you must |
| 304 // immediately discard the value returned). You might want to use |
| 305 // CmpWeakValue instead. |
| 306 void GetWeakValueNoReadBarrier(Register value, Handle<WeakCell> cell); |
| 302 | 307 |
| 303 // Load the value of the weak cell in the value register. Branch to the given | 308 // Load the value of the weak cell in the value register. Branch to the given |
| 304 // miss label if the weak cell was cleared. | 309 // miss label if the weak cell was cleared. |
| 305 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 310 void LoadWeakValue(Register value, Handle<WeakCell> cell, Register scratch, |
| 311 Label* miss); |
| 312 |
| 313 // Load the value of the weak cell in the value register. Branch to the given |
| 314 // miss label if the weak cell was cleared. |
| 315 void LoadWeakValueNoReadBarrier(Register value, Handle<WeakCell> cell, |
| 316 Label* miss); |
| 306 | 317 |
| 307 // --------------------------------------------------------------------------- | 318 // --------------------------------------------------------------------------- |
| 308 // JavaScript invokes | 319 // JavaScript invokes |
| 309 | 320 |
| 310 // Invoke the JavaScript function code by either calling or jumping. | 321 // Invoke the JavaScript function code by either calling or jumping. |
| 311 void InvokeCode(Register code, | 322 void InvokeCode(Register code, |
| 312 const ParameterCount& expected, | 323 const ParameterCount& expected, |
| 313 const ParameterCount& actual, | 324 const ParameterCount& actual, |
| 314 InvokeFlag flag, | 325 InvokeFlag flag, |
| 315 const CallWrapper& call_wrapper) { | 326 const CallWrapper& call_wrapper) { |
| (...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 } \ | 1104 } \ |
| 1094 masm-> | 1105 masm-> |
| 1095 #else | 1106 #else |
| 1096 #define ACCESS_MASM(masm) masm-> | 1107 #define ACCESS_MASM(masm) masm-> |
| 1097 #endif | 1108 #endif |
| 1098 | 1109 |
| 1099 | 1110 |
| 1100 } } // namespace v8::internal | 1111 } } // namespace v8::internal |
| 1101 | 1112 |
| 1102 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1113 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |