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

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 418433002: Profiler tweaks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | runtime/vm/tags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc
index a931ca9ea393edb454f67414467567f4b322dfc3..c5456fd91cccff36378fba0bf3d619d01f75ce33 100644
--- a/runtime/vm/stub_code_x64.cc
+++ b/runtime/vm/stub_code_x64.cc
@@ -62,7 +62,7 @@ void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) {
#if defined(DEBUG)
{ Label ok;
// Check that we are always entering from Dart code.
- __ movq(RAX, Immediate(VMTag::kScriptTagId));
+ __ movq(RAX, Immediate(VMTag::kDartTagId));
__ cmpq(RAX, Address(CTX, Isolate::vm_tag_offset()));
__ j(EQUAL, &ok, Assembler::kNearJump);
__ Stop("Not coming from Dart code.");
@@ -96,7 +96,7 @@ void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) {
// Mark that the isolate is executing Dart code.
__ movq(Address(CTX, Isolate::vm_tag_offset()),
- Immediate(VMTag::kScriptTagId));
+ Immediate(VMTag::kDartTagId));
// Reset exit frame information in Isolate structure.
__ movq(Address(CTX, Isolate::top_exit_frame_info_offset()), Immediate(0));
@@ -174,7 +174,7 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
#if defined(DEBUG)
{ Label ok;
// Check that we are always entering from Dart code.
- __ movq(R8, Immediate(VMTag::kScriptTagId));
+ __ movq(R8, Immediate(VMTag::kDartTagId));
__ cmpq(R8, Address(CTX, Isolate::vm_tag_offset()));
__ j(EQUAL, &ok, Assembler::kNearJump);
__ Stop("Not coming from Dart code.");
@@ -208,7 +208,7 @@ void StubCode::GenerateCallNativeCFunctionStub(Assembler* assembler) {
// Mark that the isolate is executing Dart code.
__ movq(Address(CTX, Isolate::vm_tag_offset()),
- Immediate(VMTag::kScriptTagId));
+ Immediate(VMTag::kDartTagId));
// Reset exit frame information in Isolate structure.
__ movq(Address(CTX, Isolate::top_exit_frame_info_offset()), Immediate(0));
@@ -263,7 +263,7 @@ void StubCode::GenerateCallBootstrapCFunctionStub(Assembler* assembler) {
#if defined(DEBUG)
{ Label ok;
// Check that we are always entering from Dart code.
- __ movq(R8, Immediate(VMTag::kScriptTagId));
+ __ movq(R8, Immediate(VMTag::kDartTagId));
__ cmpq(R8, Address(CTX, Isolate::vm_tag_offset()));
__ j(EQUAL, &ok, Assembler::kNearJump);
__ Stop("Not coming from Dart code.");
@@ -295,7 +295,7 @@ void StubCode::GenerateCallBootstrapCFunctionStub(Assembler* assembler) {
// Mark that the isolate is executing Dart code.
__ movq(Address(CTX, Isolate::vm_tag_offset()),
- Immediate(VMTag::kScriptTagId));
+ Immediate(VMTag::kDartTagId));
// Reset exit frame information in Isolate structure.
__ movq(Address(CTX, Isolate::top_exit_frame_info_offset()), Immediate(0));
@@ -750,7 +750,7 @@ void StubCode::GenerateInvokeDartCodeStub(Assembler* assembler) {
// Mark that the isolate is executing Dart code.
__ movq(Address(kIsolateReg, Isolate::vm_tag_offset()),
- Immediate(VMTag::kScriptTagId));
+ Immediate(VMTag::kDartTagId));
// Save the top exit frame info. Use RAX as a temporary register.
// StackFrameIterator reads the top exit frame info saved in this frame.
@@ -1774,7 +1774,7 @@ void StubCode::GenerateJumpToExceptionHandlerStub(Assembler* assembler) {
__ movq(kExceptionObjectReg, CallingConventions::kArg4Reg);
// Set the tag.
__ movq(Address(isolate_reg, Isolate::vm_tag_offset()),
- Immediate(VMTag::kScriptTagId));
+ Immediate(VMTag::kDartTagId));
// Clear top exit frame.
__ movq(Address(isolate_reg, Isolate::top_exit_frame_info_offset()),
Immediate(0));
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | runtime/vm/tags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698