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

Side by Side Diff: src/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/array.js » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after
3731 __ B(&done); 3731 __ B(&done);
3732 3732
3733 __ Bind(&bailout); 3733 __ Bind(&bailout);
3734 // Returning undefined will force slower code to handle it. 3734 // Returning undefined will force slower code to handle it.
3735 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); 3735 __ LoadRoot(result, Heap::kUndefinedValueRootIndex);
3736 __ Bind(&done); 3736 __ Bind(&done);
3737 context()->Plug(result); 3737 context()->Plug(result);
3738 } 3738 }
3739 3739
3740 3740
3741 void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) {
3742 ASSERT(expr->arguments()->length() == 0);
3743 ExternalReference debug_is_active =
3744 ExternalReference::debug_is_active_address(isolate());
3745 __ Mov(x10, debug_is_active);
3746 __ Ldrb(x0, MemOperand(x10));
3747 __ SmiTag(x0);
3748 context()->Plug(x0);
3749 }
3750
3751
3741 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { 3752 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
3742 if (expr->function() != NULL && 3753 if (expr->function() != NULL &&
3743 expr->function()->intrinsic_type == Runtime::INLINE) { 3754 expr->function()->intrinsic_type == Runtime::INLINE) {
3744 Comment cmnt(masm_, "[ InlineRuntimeCall"); 3755 Comment cmnt(masm_, "[ InlineRuntimeCall");
3745 EmitInlineRuntimeCall(expr); 3756 EmitInlineRuntimeCall(expr);
3746 return; 3757 return;
3747 } 3758 }
3748 3759
3749 Comment cmnt(masm_, "[ CallRunTime"); 3760 Comment cmnt(masm_, "[ CallRunTime");
3750 ZoneList<Expression*>* args = expr->arguments(); 3761 ZoneList<Expression*>* args = expr->arguments();
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
4893 return previous_; 4904 return previous_;
4894 } 4905 }
4895 4906
4896 4907
4897 #undef __ 4908 #undef __
4898 4909
4899 4910
4900 } } // namespace v8::internal 4911 } } // namespace v8::internal
4901 4912
4902 #endif // V8_TARGET_ARCH_ARM64 4913 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698