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

Side by Side Diff: src/builtins/ia32/builtins-ia32.cc

Issue 2649873002: Split some SharedFunctionInfo's compiler hints off into debugger hints. (Closed)
Patch Set: Created 3 years, 11 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/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/mips/builtins-mips.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 __ push(ebp); // Caller's frame pointer. 527 __ push(ebp); // Caller's frame pointer.
528 __ mov(ebp, esp); 528 __ mov(ebp, esp);
529 __ push(esi); // Callee's context. 529 __ push(esi); // Callee's context.
530 __ push(edi); // Callee's JS function. 530 __ push(edi); // Callee's JS function.
531 __ push(edx); // Callee's new target. 531 __ push(edx); // Callee's new target.
532 532
533 // Get the bytecode array from the function object (or from the DebugInfo if 533 // Get the bytecode array from the function object (or from the DebugInfo if
534 // it is present) and load it into kInterpreterBytecodeArrayRegister. 534 // it is present) and load it into kInterpreterBytecodeArrayRegister.
535 __ mov(eax, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); 535 __ mov(eax, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset));
536 Label load_debug_bytecode_array, bytecode_array_loaded; 536 Label load_debug_bytecode_array, bytecode_array_loaded;
537 __ cmp(FieldOperand(eax, SharedFunctionInfo::kDebugInfoOffset), 537 __ JumpIfNotSmi(FieldOperand(eax, SharedFunctionInfo::kDebugInfoOffset),
538 Immediate(DebugInfo::uninitialized())); 538 &load_debug_bytecode_array);
539 __ j(not_equal, &load_debug_bytecode_array);
540 __ mov(kInterpreterBytecodeArrayRegister, 539 __ mov(kInterpreterBytecodeArrayRegister,
541 FieldOperand(eax, SharedFunctionInfo::kFunctionDataOffset)); 540 FieldOperand(eax, SharedFunctionInfo::kFunctionDataOffset));
542 __ bind(&bytecode_array_loaded); 541 __ bind(&bytecode_array_loaded);
543 542
544 // Check whether we should continue to use the interpreter. 543 // Check whether we should continue to use the interpreter.
545 Label switch_to_different_code_kind; 544 Label switch_to_different_code_kind;
546 __ Move(ecx, masm->CodeObject()); // Self-reference to this code. 545 __ Move(ecx, masm->CodeObject()); // Self-reference to this code.
547 __ cmp(ecx, FieldOperand(eax, SharedFunctionInfo::kCodeOffset)); 546 __ cmp(ecx, FieldOperand(eax, SharedFunctionInfo::kCodeOffset));
548 __ j(not_equal, &switch_to_different_code_kind); 547 __ j(not_equal, &switch_to_different_code_kind);
549 548
(...skipping 2721 matching lines...) Expand 10 before | Expand all | Expand 10 after
3271 3270
3272 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3271 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3273 Generate_OnStackReplacementHelper(masm, true); 3272 Generate_OnStackReplacementHelper(masm, true);
3274 } 3273 }
3275 3274
3276 #undef __ 3275 #undef __
3277 } // namespace internal 3276 } // namespace internal
3278 } // namespace v8 3277 } // namespace v8
3279 3278
3280 #endif // V8_TARGET_ARCH_IA32 3279 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698