Index: src/builtins/ppc/builtins-ppc.cc |
diff --git a/src/builtins/ppc/builtins-ppc.cc b/src/builtins/ppc/builtins-ppc.cc |
index 7223e5e11069e31c48bfc4301d0b313f0e9cdc40..0895ab26f751517159c3611692b97a7a9fb7b047 100644 |
--- a/src/builtins/ppc/builtins-ppc.cc |
+++ b/src/builtins/ppc/builtins-ppc.cc |
@@ -1886,71 +1886,6 @@ void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
} |
// static |
-void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
- int field_index) { |
- // ----------- S t a t e ------------- |
- // -- r3 : number of arguments |
- // -- r4 : function |
- // -- cp : context |
- // -- lr : return address |
- // -- sp[0] : receiver |
- // ----------------------------------- |
- |
- // 1. Pop receiver into r3 and check that it's actually a JSDate object. |
- Label receiver_not_date; |
- { |
- __ Pop(r3); |
- __ JumpIfSmi(r3, &receiver_not_date); |
- __ CompareObjectType(r3, r5, r6, JS_DATE_TYPE); |
- __ bne(&receiver_not_date); |
- } |
- |
- // 2. Load the specified date field, falling back to the runtime as necessary. |
- if (field_index == JSDate::kDateValue) { |
- __ LoadP(r3, FieldMemOperand(r3, JSDate::kValueOffset)); |
- } else { |
- if (field_index < JSDate::kFirstUncachedField) { |
- Label stamp_mismatch; |
- __ mov(r4, Operand(ExternalReference::date_cache_stamp(masm->isolate()))); |
- __ LoadP(r4, MemOperand(r4)); |
- __ LoadP(ip, FieldMemOperand(r3, JSDate::kCacheStampOffset)); |
- __ cmp(r4, ip); |
- __ bne(&stamp_mismatch); |
- __ LoadP(r3, FieldMemOperand( |
- r3, JSDate::kValueOffset + field_index * kPointerSize)); |
- __ Ret(); |
- __ bind(&stamp_mismatch); |
- } |
- FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
- __ PrepareCallCFunction(2, r4); |
- __ LoadSmiLiteral(r4, Smi::FromInt(field_index)); |
- __ CallCFunction( |
- ExternalReference::get_date_field_function(masm->isolate()), 2); |
- } |
- __ Ret(); |
- |
- // 3. Raise a TypeError if the receiver is not a date. |
- __ bind(&receiver_not_date); |
- { |
- FrameScope scope(masm, StackFrame::MANUAL); |
- __ push(r3); |
- __ LoadSmiLiteral(r3, Smi::FromInt(0)); |
- __ EnterBuiltinFrame(cp, r4, r3); |
- __ CallRuntime(Runtime::kThrowNotDateError); |
- |
- // It's far from obvious, but this final trailing instruction after the call |
- // is required for StackFrame::LookupCode to work correctly. To illustrate |
- // why: if call were the final instruction in the code object, then the pc |
- // (== return address) would point beyond the code object when the stack is |
- // traversed. When we then try to look up the code object through |
- // StackFrame::LookupCode, we actually return the next code object that |
- // happens to be on the same page in memory. |
- // TODO(jgruber): A proper fix for this would be nice. |
- __ nop(); |
- } |
-} |
- |
-// static |
void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- r3 : argc |