| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 4288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4299 // a3 now points to key of indexed element of cache. | 4299 // a3 now points to key of indexed element of cache. |
| 4300 __ lw(a2, MemOperand(a3)); | 4300 __ lw(a2, MemOperand(a3)); |
| 4301 __ Branch(¬_found, ne, key, Operand(a2)); | 4301 __ Branch(¬_found, ne, key, Operand(a2)); |
| 4302 | 4302 |
| 4303 __ lw(v0, MemOperand(a3, kPointerSize)); | 4303 __ lw(v0, MemOperand(a3, kPointerSize)); |
| 4304 __ Branch(&done); | 4304 __ Branch(&done); |
| 4305 | 4305 |
| 4306 __ bind(¬_found); | 4306 __ bind(¬_found); |
| 4307 // Call runtime to perform the lookup. | 4307 // Call runtime to perform the lookup. |
| 4308 __ Push(cache, key); | 4308 __ Push(cache, key); |
| 4309 __ CallRuntime(Runtime::kGetFromCache, 2); | 4309 __ CallRuntime(Runtime::kGetFromCacheRT, 2); |
| 4310 | 4310 |
| 4311 __ bind(&done); | 4311 __ bind(&done); |
| 4312 context()->Plug(v0); | 4312 context()->Plug(v0); |
| 4313 } | 4313 } |
| 4314 | 4314 |
| 4315 | 4315 |
| 4316 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { | 4316 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
| 4317 ZoneList<Expression*>* args = expr->arguments(); | 4317 ZoneList<Expression*>* args = expr->arguments(); |
| 4318 VisitForAccumulatorValue(args->at(0)); | 4318 VisitForAccumulatorValue(args->at(0)); |
| 4319 | 4319 |
| (...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5445 Assembler::target_address_at(pc_immediate_load_address)) == | 5445 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5446 reinterpret_cast<uint32_t>( | 5446 reinterpret_cast<uint32_t>( |
| 5447 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5447 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5448 return OSR_AFTER_STACK_CHECK; | 5448 return OSR_AFTER_STACK_CHECK; |
| 5449 } | 5449 } |
| 5450 | 5450 |
| 5451 | 5451 |
| 5452 } } // namespace v8::internal | 5452 } } // namespace v8::internal |
| 5453 | 5453 |
| 5454 #endif // V8_TARGET_ARCH_MIPS | 5454 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |