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

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

Issue 343193005: MIPS: 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 | « no previous file | no next file » | 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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 4039 matching lines...) Expand 10 before | Expand all | Expand 10 after
4050 ASSERT(result.is(v0)); 4050 ASSERT(result.is(v0));
4051 __ Branch(&done); 4051 __ Branch(&done);
4052 4052
4053 __ bind(&bailout); 4053 __ bind(&bailout);
4054 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); 4054 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
4055 __ bind(&done); 4055 __ bind(&done);
4056 context()->Plug(v0); 4056 context()->Plug(v0);
4057 } 4057 }
4058 4058
4059 4059
4060 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
4061 ASSERT(expr->arguments()->length() == 0);
4062 ExternalReference debug_is_active =
4063 ExternalReference::debug_is_active_address(isolate());
4064 __ li(at, Operand(debug_is_active));
4065 __ lb(v0, MemOperand(at));
4066 __ SmiTag(v0);
4067 context()->Plug(v0);
4068 }
4069
4070
4060 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { 4071 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
4061 if (expr->function() != NULL && 4072 if (expr->function() != NULL &&
4062 expr->function()->intrinsic_type == Runtime::INLINE) { 4073 expr->function()->intrinsic_type == Runtime::INLINE) {
4063 Comment cmnt(masm_, "[ InlineRuntimeCall"); 4074 Comment cmnt(masm_, "[ InlineRuntimeCall");
4064 EmitInlineRuntimeCall(expr); 4075 EmitInlineRuntimeCall(expr);
4065 return; 4076 return;
4066 } 4077 }
4067 4078
4068 Comment cmnt(masm_, "[ CallRuntime"); 4079 Comment cmnt(masm_, "[ CallRuntime");
4069 ZoneList<Expression*>* args = expr->arguments(); 4080 ZoneList<Expression*>* args = expr->arguments();
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
4843 Assembler::target_address_at(pc_immediate_load_address)) == 4854 Assembler::target_address_at(pc_immediate_load_address)) ==
4844 reinterpret_cast<uint32_t>( 4855 reinterpret_cast<uint32_t>(
4845 isolate->builtins()->OsrAfterStackCheck()->entry())); 4856 isolate->builtins()->OsrAfterStackCheck()->entry()));
4846 return OSR_AFTER_STACK_CHECK; 4857 return OSR_AFTER_STACK_CHECK;
4847 } 4858 }
4848 4859
4849 4860
4850 } } // namespace v8::internal 4861 } } // namespace v8::internal
4851 4862
4852 #endif // V8_TARGET_ARCH_MIPS 4863 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698