Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 6894043: Crankshaft support for IN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 3980 matching lines...) Expand 10 before | Expand all | Expand 10 after
3991 // reloc info for patching in deoptimization (since this is invoking a 3991 // reloc info for patching in deoptimization (since this is invoking a
3992 // builtin) 3992 // builtin)
3993 SafepointGenerator safepoint_generator(this, 3993 SafepointGenerator safepoint_generator(this,
3994 pointers, 3994 pointers,
3995 env->deoptimization_index()); 3995 env->deoptimization_index());
3996 __ Push(Smi::FromInt(strict_mode_flag())); 3996 __ Push(Smi::FromInt(strict_mode_flag()));
3997 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION, &safepoint_generator); 3997 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION, &safepoint_generator);
3998 } 3998 }
3999 3999
4000 4000
4001 void LCodeGen::DoIn(LIn* instr) {
4002 LOperand* obj = instr->object();
4003 LOperand* key = instr->key();
4004 EmitPushTaggedOperand(key);
4005 EmitPushTaggedOperand(obj);
4006 ASSERT(instr->HasPointerMap() && instr->HasDeoptimizationEnvironment());
4007 LPointerMap* pointers = instr->pointer_map();
4008 LEnvironment* env = instr->deoptimization_environment();
4009 RecordPosition(pointers->position());
4010 RegisterEnvironmentForDeoptimization(env);
4011 // Create safepoint generator that will also ensure enough space in the
4012 // reloc info for patching in deoptimization (since this is invoking a
4013 // builtin)
4014 SafepointGenerator safepoint_generator(this,
4015 pointers,
4016 env->deoptimization_index());
4017 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, &safepoint_generator);
4018 }
4019
4020
4001 void LCodeGen::DoStackCheck(LStackCheck* instr) { 4021 void LCodeGen::DoStackCheck(LStackCheck* instr) {
4002 // Perform stack overflow check. 4022 // Perform stack overflow check.
4003 NearLabel done; 4023 NearLabel done;
4004 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); 4024 __ CompareRoot(rsp, Heap::kStackLimitRootIndex);
4005 __ j(above_equal, &done); 4025 __ j(above_equal, &done);
4006 4026
4007 StackCheckStub stub; 4027 StackCheckStub stub;
4008 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 4028 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
4009 __ bind(&done); 4029 __ bind(&done);
4010 } 4030 }
(...skipping 13 matching lines...) Expand all
4024 RegisterEnvironmentForDeoptimization(environment); 4044 RegisterEnvironmentForDeoptimization(environment);
4025 ASSERT(osr_pc_offset_ == -1); 4045 ASSERT(osr_pc_offset_ == -1);
4026 osr_pc_offset_ = masm()->pc_offset(); 4046 osr_pc_offset_ = masm()->pc_offset();
4027 } 4047 }
4028 4048
4029 #undef __ 4049 #undef __
4030 4050
4031 } } // namespace v8::internal 4051 } } // namespace v8::internal
4032 4052
4033 #endif // V8_TARGET_ARCH_X64 4053 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/lithium-ia32.cc ('K') | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698