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 4238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4249 __ mov(strict, Operand(Smi::FromInt(strict_mode_flag()))); | 4249 __ mov(strict, Operand(Smi::FromInt(strict_mode_flag()))); |
4250 __ Push(object, key, strict); | 4250 __ Push(object, key, strict); |
4251 ASSERT(instr->HasPointerMap() && instr->HasDeoptimizationEnvironment()); | 4251 ASSERT(instr->HasPointerMap() && instr->HasDeoptimizationEnvironment()); |
4252 LPointerMap* pointers = instr->pointer_map(); | 4252 LPointerMap* pointers = instr->pointer_map(); |
4253 LEnvironment* env = instr->deoptimization_environment(); | 4253 LEnvironment* env = instr->deoptimization_environment(); |
4254 RecordPosition(pointers->position()); | 4254 RecordPosition(pointers->position()); |
4255 RegisterEnvironmentForDeoptimization(env); | 4255 RegisterEnvironmentForDeoptimization(env); |
4256 SafepointGenerator safepoint_generator(this, | 4256 SafepointGenerator safepoint_generator(this, |
4257 pointers, | 4257 pointers, |
4258 env->deoptimization_index()); | 4258 env->deoptimization_index()); |
4259 __ InvokeBuiltin(Builtins::DELETE, CALL_JS, &safepoint_generator); | 4259 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION, &safepoint_generator); |
4260 } | 4260 } |
4261 | 4261 |
4262 | 4262 |
4263 void LCodeGen::DoIn(LIn* instr) { | 4263 void LCodeGen::DoIn(LIn* instr) { |
4264 Register obj = ToRegister(instr->object()); | 4264 Register obj = ToRegister(instr->object()); |
4265 Register key = ToRegister(instr->key()); | 4265 Register key = ToRegister(instr->key()); |
4266 __ Push(key, obj); | 4266 __ Push(key, obj); |
4267 ASSERT(instr->HasPointerMap() && instr->HasDeoptimizationEnvironment()); | 4267 ASSERT(instr->HasPointerMap() && instr->HasDeoptimizationEnvironment()); |
4268 LPointerMap* pointers = instr->pointer_map(); | 4268 LPointerMap* pointers = instr->pointer_map(); |
4269 LEnvironment* env = instr->deoptimization_environment(); | 4269 LEnvironment* env = instr->deoptimization_environment(); |
4270 RecordPosition(pointers->position()); | 4270 RecordPosition(pointers->position()); |
4271 RegisterEnvironmentForDeoptimization(env); | 4271 RegisterEnvironmentForDeoptimization(env); |
4272 SafepointGenerator safepoint_generator(this, | 4272 SafepointGenerator safepoint_generator(this, |
4273 pointers, | 4273 pointers, |
4274 env->deoptimization_index()); | 4274 env->deoptimization_index()); |
4275 __ InvokeBuiltin(Builtins::IN, CALL_JS, &safepoint_generator); | 4275 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, &safepoint_generator); |
4276 } | 4276 } |
4277 | 4277 |
4278 | 4278 |
4279 void LCodeGen::DoStackCheck(LStackCheck* instr) { | 4279 void LCodeGen::DoStackCheck(LStackCheck* instr) { |
4280 // Perform stack overflow check. | 4280 // Perform stack overflow check. |
4281 Label ok; | 4281 Label ok; |
4282 __ LoadRoot(ip, Heap::kStackLimitRootIndex); | 4282 __ LoadRoot(ip, Heap::kStackLimitRootIndex); |
4283 __ cmp(sp, Operand(ip)); | 4283 __ cmp(sp, Operand(ip)); |
4284 __ b(hs, &ok); | 4284 __ b(hs, &ok); |
4285 StackCheckStub stub; | 4285 StackCheckStub stub; |
(...skipping 17 matching lines...) Expand all Loading... |
4303 ASSERT(osr_pc_offset_ == -1); | 4303 ASSERT(osr_pc_offset_ == -1); |
4304 osr_pc_offset_ = masm()->pc_offset(); | 4304 osr_pc_offset_ = masm()->pc_offset(); |
4305 } | 4305 } |
4306 | 4306 |
4307 | 4307 |
4308 | 4308 |
4309 | 4309 |
4310 #undef __ | 4310 #undef __ |
4311 | 4311 |
4312 } } // namespace v8::internal | 4312 } } // namespace v8::internal |
OLD | NEW |