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

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

Issue 1676263002: Remove --stop-at flag from several backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // frames-mips.h for its layout. 111 // frames-mips.h for its layout.
112 void FullCodeGenerator::Generate() { 112 void FullCodeGenerator::Generate() {
113 CompilationInfo* info = info_; 113 CompilationInfo* info = info_;
114 profiling_counter_ = isolate()->factory()->NewCell( 114 profiling_counter_ = isolate()->factory()->NewCell(
115 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); 115 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate()));
116 SetFunctionPosition(literal()); 116 SetFunctionPosition(literal());
117 Comment cmnt(masm_, "[ function compiled by full code generator"); 117 Comment cmnt(masm_, "[ function compiled by full code generator");
118 118
119 ProfileEntryHookStub::MaybeCallEntryHook(masm_); 119 ProfileEntryHookStub::MaybeCallEntryHook(masm_);
120 120
121 #ifdef DEBUG
122 if (strlen(FLAG_stop_at) > 0 &&
123 info->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) {
124 __ stop("stop-at");
125 }
126 #endif
127
128 if (FLAG_debug_code && info->ExpectsJSReceiverAsReceiver()) { 121 if (FLAG_debug_code && info->ExpectsJSReceiverAsReceiver()) {
129 int receiver_offset = info->scope()->num_parameters() * kPointerSize; 122 int receiver_offset = info->scope()->num_parameters() * kPointerSize;
130 __ lw(a2, MemOperand(sp, receiver_offset)); 123 __ lw(a2, MemOperand(sp, receiver_offset));
131 __ AssertNotSmi(a2); 124 __ AssertNotSmi(a2);
132 __ GetObjectType(a2, a2, a2); 125 __ GetObjectType(a2, a2, a2);
133 __ Check(ge, kSloppyFunctionExpectsJSReceiverReceiver, a2, 126 __ Check(ge, kSloppyFunctionExpectsJSReceiverReceiver, a2,
134 Operand(FIRST_JS_RECEIVER_TYPE)); 127 Operand(FIRST_JS_RECEIVER_TYPE));
135 } 128 }
136 129
137 // Open a frame scope to indicate that there is a frame on the stack. The 130 // Open a frame scope to indicate that there is a frame on the stack. The
(...skipping 4551 matching lines...) Expand 10 before | Expand all | Expand 10 after
4689 reinterpret_cast<uint32_t>( 4682 reinterpret_cast<uint32_t>(
4690 isolate->builtins()->OsrAfterStackCheck()->entry())); 4683 isolate->builtins()->OsrAfterStackCheck()->entry()));
4691 return OSR_AFTER_STACK_CHECK; 4684 return OSR_AFTER_STACK_CHECK;
4692 } 4685 }
4693 4686
4694 4687
4695 } // namespace internal 4688 } // namespace internal
4696 } // namespace v8 4689 } // namespace v8
4697 4690
4698 #endif // V8_TARGET_ARCH_MIPS 4691 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698