| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. | 
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without | 
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are | 
| 4 // met: | 4 // met: | 
| 5 // | 5 // | 
| 6 //     * Redistributions of source code must retain the above copyright | 6 //     * Redistributions of source code must retain the above copyright | 
| 7 //       notice, this list of conditions and the following disclaimer. | 7 //       notice, this list of conditions and the following disclaimer. | 
| 8 //     * Redistributions in binary form must reproduce the above | 8 //     * Redistributions in binary form must reproduce the above | 
| 9 //       copyright notice, this list of conditions and the following | 9 //       copyright notice, this list of conditions and the following | 
| 10 //       disclaimer in the documentation and/or other materials provided | 10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 3656 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3667 | 3667 | 
| 3668   // Pick the right runtime function to call. | 3668   // Pick the right runtime function to call. | 
| 3669   if (instr->hydrogen()->depth() > 1) { | 3669   if (instr->hydrogen()->depth() > 1) { | 
| 3670     CallRuntime(Runtime::kCreateObjectLiteral, 4, instr); | 3670     CallRuntime(Runtime::kCreateObjectLiteral, 4, instr); | 
| 3671   } else { | 3671   } else { | 
| 3672     CallRuntime(Runtime::kCreateObjectLiteralShallow, 4, instr); | 3672     CallRuntime(Runtime::kCreateObjectLiteralShallow, 4, instr); | 
| 3673   } | 3673   } | 
| 3674 } | 3674 } | 
| 3675 | 3675 | 
| 3676 | 3676 | 
|  | 3677 void LCodeGen::DoToFastProperties(LToFastProperties* instr) { | 
|  | 3678   ASSERT(ToRegister(instr->InputAt(0)).is(r0)); | 
|  | 3679   __ push(r0); | 
|  | 3680   CallRuntime(Runtime::kToFastProperties, 1, instr); | 
|  | 3681 } | 
|  | 3682 | 
|  | 3683 | 
| 3677 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { | 3684 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { | 
| 3678   Label materialized; | 3685   Label materialized; | 
| 3679   // Registers will be used as follows: | 3686   // Registers will be used as follows: | 
| 3680   // r3 = JS function. | 3687   // r3 = JS function. | 
| 3681   // r7 = literals array. | 3688   // r7 = literals array. | 
| 3682   // r1 = regexp literal. | 3689   // r1 = regexp literal. | 
| 3683   // r0 = regexp literal clone. | 3690   // r0 = regexp literal clone. | 
| 3684   // r2 and r4-r6 are used as temporaries. | 3691   // r2 and r4-r6 are used as temporaries. | 
| 3685   __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 3692   __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 
| 3686   __ ldr(r7, FieldMemOperand(r3, JSFunction::kLiteralsOffset)); | 3693   __ ldr(r7, FieldMemOperand(r3, JSFunction::kLiteralsOffset)); | 
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3965   ASSERT(!environment->HasBeenRegistered()); | 3972   ASSERT(!environment->HasBeenRegistered()); | 
| 3966   RegisterEnvironmentForDeoptimization(environment); | 3973   RegisterEnvironmentForDeoptimization(environment); | 
| 3967   ASSERT(osr_pc_offset_ == -1); | 3974   ASSERT(osr_pc_offset_ == -1); | 
| 3968   osr_pc_offset_ = masm()->pc_offset(); | 3975   osr_pc_offset_ = masm()->pc_offset(); | 
| 3969 } | 3976 } | 
| 3970 | 3977 | 
| 3971 | 3978 | 
| 3972 #undef __ | 3979 #undef __ | 
| 3973 | 3980 | 
| 3974 } }  // namespace v8::internal | 3981 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|