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

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

Issue 8820015: Hydrogen support for context allocated harmony bindings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Don't use the Variable object and fix test case. Created 9 years 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 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 LOperand* global_object = UseFixed(instr->global_object(), edx); 1868 LOperand* global_object = UseFixed(instr->global_object(), edx);
1869 LOperand* value = UseFixed(instr->value(), eax); 1869 LOperand* value = UseFixed(instr->value(), eax);
1870 LStoreGlobalGeneric* result = 1870 LStoreGlobalGeneric* result =
1871 new(zone()) LStoreGlobalGeneric(context, global_object, value); 1871 new(zone()) LStoreGlobalGeneric(context, global_object, value);
1872 return MarkAsCall(result, instr); 1872 return MarkAsCall(result, instr);
1873 } 1873 }
1874 1874
1875 1875
1876 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1876 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1877 LOperand* context = UseRegisterAtStart(instr->value()); 1877 LOperand* context = UseRegisterAtStart(instr->value());
1878 return DefineAsRegister(new(zone()) LLoadContextSlot(context)); 1878 LInstruction* result =
1879 DefineAsRegister(new(zone()) LLoadContextSlot(context));
1880 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
1879 } 1881 }
1880 1882
1881 1883
1882 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1884 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1883 LOperand* value; 1885 LOperand* value;
1884 LOperand* temp; 1886 LOperand* temp;
1885 LOperand* context = UseRegister(instr->context()); 1887 LOperand* context = UseRegister(instr->context());
1886 if (instr->NeedsWriteBarrier()) { 1888 if (instr->NeedsWriteBarrier()) {
1887 value = UseTempRegister(instr->value()); 1889 value = UseTempRegister(instr->value());
1888 temp = TempRegister(); 1890 temp = TempRegister();
1889 } else { 1891 } else {
1890 value = UseRegister(instr->value()); 1892 value = UseRegister(instr->value());
1891 temp = NULL; 1893 temp = NULL;
1892 } 1894 }
1893 return new(zone()) LStoreContextSlot(context, value, temp); 1895 LInstruction* result = new(zone()) LStoreContextSlot(context, value, temp);
1896 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
1894 } 1897 }
1895 1898
1896 1899
1897 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1900 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1898 ASSERT(instr->representation().IsTagged()); 1901 ASSERT(instr->representation().IsTagged());
1899 LOperand* obj = UseRegisterAtStart(instr->object()); 1902 LOperand* obj = UseRegisterAtStart(instr->object());
1900 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 1903 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
1901 } 1904 }
1902 1905
1903 1906
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 LOperand* key = UseOrConstantAtStart(instr->key()); 2377 LOperand* key = UseOrConstantAtStart(instr->key());
2375 LOperand* object = UseOrConstantAtStart(instr->object()); 2378 LOperand* object = UseOrConstantAtStart(instr->object());
2376 LIn* result = new(zone()) LIn(context, key, object); 2379 LIn* result = new(zone()) LIn(context, key, object);
2377 return MarkAsCall(DefineFixed(result, eax), instr); 2380 return MarkAsCall(DefineFixed(result, eax), instr);
2378 } 2381 }
2379 2382
2380 2383
2381 } } // namespace v8::internal 2384 } } // namespace v8::internal
2382 2385
2383 #endif // V8_TARGET_ARCH_IA32 2386 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698