OLD | NEW |
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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 } | 328 } |
329 | 329 |
330 if (FLAG_trace) { | 330 if (FLAG_trace) { |
331 __ CallRuntime(Runtime::kTraceEnter, 0); | 331 __ CallRuntime(Runtime::kTraceEnter, 0); |
332 } | 332 } |
333 | 333 |
334 // Visit the declarations and body unless there is an illegal | 334 // Visit the declarations and body unless there is an illegal |
335 // redeclaration. | 335 // redeclaration. |
336 if (scope()->HasIllegalRedeclaration()) { | 336 if (scope()->HasIllegalRedeclaration()) { |
337 Comment cmnt(masm_, "[ Declarations"); | 337 Comment cmnt(masm_, "[ Declarations"); |
338 scope()->VisitIllegalRedeclaration(this); | 338 VisitForEffect(scope()->GetIllegalRedeclaration()); |
339 | 339 |
340 } else { | 340 } else { |
341 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 341 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
342 { Comment cmnt(masm_, "[ Declarations"); | 342 { Comment cmnt(masm_, "[ Declarations"); |
343 VisitDeclarations(scope()->declarations()); | 343 VisitDeclarations(scope()->declarations()); |
344 } | 344 } |
345 | 345 |
346 // Assert that the declarations do not use ICs. Otherwise the debugger | 346 // Assert that the declarations do not use ICs. Otherwise the debugger |
347 // won't be able to redirect a PC at an IC to the correct IC in newly | 347 // won't be able to redirect a PC at an IC to the correct IC in newly |
348 // recompiled code. | 348 // recompiled code. |
(...skipping 4976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5325 reinterpret_cast<uint64_t>( | 5325 reinterpret_cast<uint64_t>( |
5326 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5326 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5327 return OSR_AFTER_STACK_CHECK; | 5327 return OSR_AFTER_STACK_CHECK; |
5328 } | 5328 } |
5329 | 5329 |
5330 | 5330 |
5331 } // namespace internal | 5331 } // namespace internal |
5332 } // namespace v8 | 5332 } // namespace v8 |
5333 | 5333 |
5334 #endif // V8_TARGET_ARCH_MIPS64 | 5334 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |