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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 877243004: Load callback data from weak cell instead of embedding it in handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/ia32/macro-assembler-ia32.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 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
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
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_
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698