OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4276 // r6 now points to the key of the pair. | 4276 // r6 now points to the key of the pair. |
4277 __ cmp(key, r5); | 4277 __ cmp(key, r5); |
4278 __ bne(¬_found); | 4278 __ bne(¬_found); |
4279 | 4279 |
4280 __ LoadP(r3, MemOperand(r6, kPointerSize)); | 4280 __ LoadP(r3, MemOperand(r6, kPointerSize)); |
4281 __ b(&done); | 4281 __ b(&done); |
4282 | 4282 |
4283 __ bind(¬_found); | 4283 __ bind(¬_found); |
4284 // Call runtime to perform the lookup. | 4284 // Call runtime to perform the lookup. |
4285 __ Push(cache, key); | 4285 __ Push(cache, key); |
4286 __ CallRuntime(Runtime::kGetFromCache, 2); | 4286 __ CallRuntime(Runtime::kGetFromCacheRT, 2); |
4287 | 4287 |
4288 __ bind(&done); | 4288 __ bind(&done); |
4289 context()->Plug(r3); | 4289 context()->Plug(r3); |
4290 } | 4290 } |
4291 | 4291 |
4292 | 4292 |
4293 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { | 4293 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
4294 ZoneList<Expression*>* args = expr->arguments(); | 4294 ZoneList<Expression*>* args = expr->arguments(); |
4295 VisitForAccumulatorValue(args->at(0)); | 4295 VisitForAccumulatorValue(args->at(0)); |
4296 | 4296 |
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5435 return ON_STACK_REPLACEMENT; | 5435 return ON_STACK_REPLACEMENT; |
5436 } | 5436 } |
5437 | 5437 |
5438 DCHECK(interrupt_address == | 5438 DCHECK(interrupt_address == |
5439 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5439 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5440 return OSR_AFTER_STACK_CHECK; | 5440 return OSR_AFTER_STACK_CHECK; |
5441 } | 5441 } |
5442 } | 5442 } |
5443 } // namespace v8::internal | 5443 } // namespace v8::internal |
5444 #endif // V8_TARGET_ARCH_PPC | 5444 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |