| 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_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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 } | 332 } |
| 333 | 333 |
| 334 if (FLAG_trace) { | 334 if (FLAG_trace) { |
| 335 __ CallRuntime(Runtime::kTraceEnter, 0); | 335 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 336 } | 336 } |
| 337 | 337 |
| 338 // Visit the declarations and body unless there is an illegal | 338 // Visit the declarations and body unless there is an illegal |
| 339 // redeclaration. | 339 // redeclaration. |
| 340 if (scope()->HasIllegalRedeclaration()) { | 340 if (scope()->HasIllegalRedeclaration()) { |
| 341 Comment cmnt(masm_, "[ Declarations"); | 341 Comment cmnt(masm_, "[ Declarations"); |
| 342 scope()->VisitIllegalRedeclaration(this); | 342 VisitForEffect(scope()->GetIllegalRedeclaration()); |
| 343 | 343 |
| 344 } else { | 344 } else { |
| 345 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); | 345 PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
| 346 { Comment cmnt(masm_, "[ Declarations"); | 346 { Comment cmnt(masm_, "[ Declarations"); |
| 347 VisitDeclarations(scope()->declarations()); | 347 VisitDeclarations(scope()->declarations()); |
| 348 } | 348 } |
| 349 | 349 |
| 350 // Assert that the declarations do not use ICs. Otherwise the debugger | 350 // Assert that the declarations do not use ICs. Otherwise the debugger |
| 351 // won't be able to redirect a PC at an IC to the correct IC in newly | 351 // won't be able to redirect a PC at an IC to the correct IC in newly |
| 352 // recompiled code. | 352 // recompiled code. |
| (...skipping 4965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5318 reinterpret_cast<uint32_t>( | 5318 reinterpret_cast<uint32_t>( |
| 5319 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5319 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5320 return OSR_AFTER_STACK_CHECK; | 5320 return OSR_AFTER_STACK_CHECK; |
| 5321 } | 5321 } |
| 5322 | 5322 |
| 5323 | 5323 |
| 5324 } // namespace internal | 5324 } // namespace internal |
| 5325 } // namespace v8 | 5325 } // namespace v8 |
| 5326 | 5326 |
| 5327 #endif // V8_TARGET_ARCH_MIPS | 5327 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |