| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 4290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4301 // a3 now points to key of indexed element of cache. | 4301 // a3 now points to key of indexed element of cache. |
| 4302 __ ld(a2, MemOperand(a3)); | 4302 __ ld(a2, MemOperand(a3)); |
| 4303 __ Branch(¬_found, ne, key, Operand(a2)); | 4303 __ Branch(¬_found, ne, key, Operand(a2)); |
| 4304 | 4304 |
| 4305 __ ld(v0, MemOperand(a3, kPointerSize)); | 4305 __ ld(v0, MemOperand(a3, kPointerSize)); |
| 4306 __ Branch(&done); | 4306 __ Branch(&done); |
| 4307 | 4307 |
| 4308 __ bind(¬_found); | 4308 __ bind(¬_found); |
| 4309 // Call runtime to perform the lookup. | 4309 // Call runtime to perform the lookup. |
| 4310 __ Push(cache, key); | 4310 __ Push(cache, key); |
| 4311 __ CallRuntime(Runtime::kGetFromCache, 2); | 4311 __ CallRuntime(Runtime::kGetFromCacheRT, 2); |
| 4312 | 4312 |
| 4313 __ bind(&done); | 4313 __ bind(&done); |
| 4314 context()->Plug(v0); | 4314 context()->Plug(v0); |
| 4315 } | 4315 } |
| 4316 | 4316 |
| 4317 | 4317 |
| 4318 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { | 4318 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
| 4319 ZoneList<Expression*>* args = expr->arguments(); | 4319 ZoneList<Expression*>* args = expr->arguments(); |
| 4320 VisitForAccumulatorValue(args->at(0)); | 4320 VisitForAccumulatorValue(args->at(0)); |
| 4321 | 4321 |
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5451 Assembler::target_address_at(pc_immediate_load_address)) == | 5451 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5452 reinterpret_cast<uint64_t>( | 5452 reinterpret_cast<uint64_t>( |
| 5453 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5453 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5454 return OSR_AFTER_STACK_CHECK; | 5454 return OSR_AFTER_STACK_CHECK; |
| 5455 } | 5455 } |
| 5456 | 5456 |
| 5457 | 5457 |
| 5458 } } // namespace v8::internal | 5458 } } // namespace v8::internal |
| 5459 | 5459 |
| 5460 #endif // V8_TARGET_ARCH_MIPS64 | 5460 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |