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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 332673002: Introduce intrinsic to expose debug state to generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/macros.py » ('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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3992 matching lines...) Expand 10 before | Expand all | Expand 10 after
4003 __ bind(&done); 4003 __ bind(&done);
4004 __ mov(eax, result_operand); 4004 __ mov(eax, result_operand);
4005 // Drop temp values from the stack, and restore context register. 4005 // Drop temp values from the stack, and restore context register.
4006 __ add(esp, Immediate(3 * kPointerSize)); 4006 __ add(esp, Immediate(3 * kPointerSize));
4007 4007
4008 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 4008 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
4009 context()->Plug(eax); 4009 context()->Plug(eax);
4010 } 4010 }
4011 4011
4012 4012
4013 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
4014 ASSERT(expr->arguments()->length() == 0);
4015 ExternalReference debug_is_active =
4016 ExternalReference::debug_is_active_address(isolate());
4017 __ movzx_b(eax, Operand::StaticVariable(debug_is_active));
4018 __ SmiTag(eax);
4019 context()->Plug(eax);
4020 }
4021
4022
4013 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { 4023 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
4014 if (expr->function() != NULL && 4024 if (expr->function() != NULL &&
4015 expr->function()->intrinsic_type == Runtime::INLINE) { 4025 expr->function()->intrinsic_type == Runtime::INLINE) {
4016 Comment cmnt(masm_, "[ InlineRuntimeCall"); 4026 Comment cmnt(masm_, "[ InlineRuntimeCall");
4017 EmitInlineRuntimeCall(expr); 4027 EmitInlineRuntimeCall(expr);
4018 return; 4028 return;
4019 } 4029 }
4020 4030
4021 Comment cmnt(masm_, "[ CallRuntime"); 4031 Comment cmnt(masm_, "[ CallRuntime");
4022 ZoneList<Expression*>* args = expr->arguments(); 4032 ZoneList<Expression*>* args = expr->arguments();
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
4803 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4813 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4804 Assembler::target_address_at(call_target_address, 4814 Assembler::target_address_at(call_target_address,
4805 unoptimized_code)); 4815 unoptimized_code));
4806 return OSR_AFTER_STACK_CHECK; 4816 return OSR_AFTER_STACK_CHECK;
4807 } 4817 }
4808 4818
4809 4819
4810 } } // namespace v8::internal 4820 } } // namespace v8::internal
4811 4821
4812 #endif // V8_TARGET_ARCH_IA32 4822 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698