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

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

Issue 6676065: Merge revision 7239 (=-7215, -7212) to trunk (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after
2056 __ push(eax); 2056 __ push(eax);
2057 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 2057 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
2058 __ CallRuntime(Runtime::kTraceExit, 1); 2058 __ CallRuntime(Runtime::kTraceExit, 1);
2059 } 2059 }
2060 __ mov(esp, ebp); 2060 __ mov(esp, ebp);
2061 __ pop(ebp); 2061 __ pop(ebp);
2062 __ Ret((ParameterCount() + 1) * kPointerSize, ecx); 2062 __ Ret((ParameterCount() + 1) * kPointerSize, ecx);
2063 } 2063 }
2064 2064
2065 2065
2066 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { 2066 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) {
2067 Register result = ToRegister(instr->result()); 2067 Register result = ToRegister(instr->result());
2068 __ mov(result, Operand::Cell(instr->hydrogen()->cell())); 2068 __ mov(result, Operand::Cell(instr->hydrogen()->cell()));
2069 if (instr->hydrogen()->check_hole_value()) { 2069 if (instr->hydrogen()->check_hole_value()) {
2070 __ cmp(result, Factory::the_hole_value()); 2070 __ cmp(result, Factory::the_hole_value());
2071 DeoptimizeIf(equal, instr->environment()); 2071 DeoptimizeIf(equal, instr->environment());
2072 } 2072 }
2073 } 2073 }
2074 2074
2075 2075
2076 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2077 ASSERT(ToRegister(instr->context()).is(esi));
2078 ASSERT(ToRegister(instr->global_object()).is(eax));
2079 ASSERT(ToRegister(instr->result()).is(eax));
2080
2081 __ mov(ecx, instr->name());
2082 RelocInfo::Mode mode = instr->for_typeof() ? RelocInfo::CODE_TARGET :
2083 RelocInfo::CODE_TARGET_CONTEXT;
2084 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
2085 CallCode(ic, mode, instr);
2086 }
2087
2088
2089 void LCodeGen::DoStoreGlobal(LStoreGlobal* instr) { 2076 void LCodeGen::DoStoreGlobal(LStoreGlobal* instr) {
2090 Register value = ToRegister(instr->InputAt(0)); 2077 Register value = ToRegister(instr->InputAt(0));
2091 Operand cell_operand = Operand::Cell(instr->hydrogen()->cell()); 2078 Operand cell_operand = Operand::Cell(instr->hydrogen()->cell());
2092 2079
2093 // If the cell we are storing to contains the hole it could have 2080 // If the cell we are storing to contains the hole it could have
2094 // been deleted from the property dictionary. In that case, we need 2081 // been deleted from the property dictionary. In that case, we need
2095 // to update the property details in the property dictionary to mark 2082 // to update the property details in the property dictionary to mark
2096 // it as no longer deleted. We deoptimize in that case. 2083 // it as no longer deleted. We deoptimize in that case.
2097 if (instr->hydrogen()->check_hole_value()) { 2084 if (instr->hydrogen()->check_hole_value()) {
2098 __ cmp(cell_operand, Factory::the_hole_value()); 2085 __ cmp(cell_operand, Factory::the_hole_value());
(...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after
3999 ASSERT(osr_pc_offset_ == -1); 3986 ASSERT(osr_pc_offset_ == -1);
4000 osr_pc_offset_ = masm()->pc_offset(); 3987 osr_pc_offset_ = masm()->pc_offset();
4001 } 3988 }
4002 3989
4003 3990
4004 #undef __ 3991 #undef __
4005 3992
4006 } } // namespace v8::internal 3993 } } // namespace v8::internal
4007 3994
4008 #endif // V8_TARGET_ARCH_IA32 3995 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698