| 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1365 Label miss; | 1365 Label miss; |
| 1366 Register receiver = LoadDescriptor::ReceiverRegister(); | 1366 Register receiver = LoadDescriptor::ReceiverRegister(); |
| 1367 // Ensure that the vector and slot registers won't be clobbered before | 1367 // Ensure that the vector and slot registers won't be clobbered before |
| 1368 // calling the miss handler. | 1368 // calling the miss handler. |
| 1369 DCHECK(!AreAliased(r7, r8, LoadWithVectorDescriptor::VectorRegister(), | 1369 DCHECK(!AreAliased(r7, r8, LoadWithVectorDescriptor::VectorRegister(), |
| 1370 LoadWithVectorDescriptor::SlotRegister())); | 1370 LoadWithVectorDescriptor::SlotRegister())); |
| 1371 | 1371 |
| 1372 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, r7, | 1372 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, r7, |
| 1373 r8, &miss); | 1373 r8, &miss); |
| 1374 __ bind(&miss); | 1374 __ bind(&miss); |
| 1375 PropertyAccessCompiler::TailCallBuiltin( | 1375 PropertyAccessCompiler::TailCallMissHandler(masm, Code::LOAD_IC); |
| 1376 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); | |
| 1377 } | 1376 } |
| 1378 | 1377 |
| 1379 | 1378 |
| 1380 void LoadIndexedStringStub::Generate(MacroAssembler* masm) { | 1379 void LoadIndexedStringStub::Generate(MacroAssembler* masm) { |
| 1381 // Return address is in lr. | 1380 // Return address is in lr. |
| 1382 Label miss; | 1381 Label miss; |
| 1383 | 1382 |
| 1384 Register receiver = LoadDescriptor::ReceiverRegister(); | 1383 Register receiver = LoadDescriptor::ReceiverRegister(); |
| 1385 Register index = LoadDescriptor::NameRegister(); | 1384 Register index = LoadDescriptor::NameRegister(); |
| 1386 Register scratch = r8; | 1385 Register scratch = r8; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1397 &miss, // When not a number. | 1396 &miss, // When not a number. |
| 1398 &miss, // When index out of range. | 1397 &miss, // When index out of range. |
| 1399 RECEIVER_IS_STRING); | 1398 RECEIVER_IS_STRING); |
| 1400 char_at_generator.GenerateFast(masm); | 1399 char_at_generator.GenerateFast(masm); |
| 1401 __ Ret(); | 1400 __ Ret(); |
| 1402 | 1401 |
| 1403 StubRuntimeCallHelper call_helper; | 1402 StubRuntimeCallHelper call_helper; |
| 1404 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper); | 1403 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper); |
| 1405 | 1404 |
| 1406 __ bind(&miss); | 1405 __ bind(&miss); |
| 1407 PropertyAccessCompiler::TailCallBuiltin( | 1406 PropertyAccessCompiler::TailCallMissHandler(masm, Code::KEYED_LOAD_IC); |
| 1408 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); | |
| 1409 } | 1407 } |
| 1410 | 1408 |
| 1411 | 1409 |
| 1412 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1410 void RegExpExecStub::Generate(MacroAssembler* masm) { |
| 1413 // Just jump directly to runtime if native RegExp is not selected at compile | 1411 // Just jump directly to runtime if native RegExp is not selected at compile |
| 1414 // time or if regexp entry in generated code is turned off runtime switch or | 1412 // time or if regexp entry in generated code is turned off runtime switch or |
| 1415 // at compilation. | 1413 // at compilation. |
| 1416 #ifdef V8_INTERPRETED_REGEXP | 1414 #ifdef V8_INTERPRETED_REGEXP |
| 1417 __ TailCallRuntime(Runtime::kRegExpExec); | 1415 __ TailCallRuntime(Runtime::kRegExpExec); |
| 1418 #else // V8_INTERPRETED_REGEXP | 1416 #else // V8_INTERPRETED_REGEXP |
| (...skipping 4268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5687 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); | 5685 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); |
| 5688 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5686 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 5689 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5687 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 5690 } | 5688 } |
| 5691 | 5689 |
| 5692 #undef __ | 5690 #undef __ |
| 5693 } // namespace internal | 5691 } // namespace internal |
| 5694 } // namespace v8 | 5692 } // namespace v8 |
| 5695 | 5693 |
| 5696 #endif // V8_TARGET_ARCH_PPC | 5694 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |