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

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

Issue 12212080: MIPS: Generate the TransitionElementsStub using Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed unused flag Created 7 years, 10 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/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 ASSERT(instr->object()->representation().IsTagged()); 1998 ASSERT(instr->object()->representation().IsTagged());
1999 ASSERT(instr->key()->representation().IsTagged()); 1999 ASSERT(instr->key()->representation().IsTagged());
2000 ASSERT(instr->value()->representation().IsTagged()); 2000 ASSERT(instr->value()->representation().IsTagged());
2001 2001
2002 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr); 2002 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr);
2003 } 2003 }
2004 2004
2005 2005
2006 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2006 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2007 HTransitionElementsKind* instr) { 2007 HTransitionElementsKind* instr) {
2008 LOperand* object = UseRegister(instr->object());
2008 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2009 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2009 LOperand* object = UseRegister(instr->object());
2010 LOperand* new_map_reg = TempRegister(); 2010 LOperand* new_map_reg = TempRegister();
2011 LTransitionElementsKind* result = 2011 LTransitionElementsKind* result =
2012 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); 2012 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL);
2013 return DefineSameAsFirst(result); 2013 return DefineSameAsFirst(result);
2014 } else if (FLAG_compiled_transitions) {
2015 LTransitionElementsKind* result =
2016 new(zone()) LTransitionElementsKind(object, NULL, NULL);
2017 return AssignPointerMap(result);
2014 } else { 2018 } else {
2015 LOperand* object = UseFixed(instr->object(), a0); 2019 LOperand* object = UseFixed(instr->object(), a0);
2016 LOperand* fixed_object_reg = FixedTemp(a2); 2020 LOperand* fixed_object_reg = FixedTemp(a2);
2017 LOperand* new_map_reg = FixedTemp(a3); 2021 LOperand* new_map_reg = FixedTemp(a3);
2018 LTransitionElementsKind* result = 2022 LTransitionElementsKind* result =
2019 new(zone()) LTransitionElementsKind(object, 2023 new(zone()) LTransitionElementsKind(object,
2020 new_map_reg, 2024 new_map_reg,
2021 fixed_object_reg); 2025 fixed_object_reg);
2022 return MarkAsCall(DefineFixed(result, v0), instr); 2026 return MarkAsCall(result, instr);
2023 } 2027 }
2024 } 2028 }
2025 2029
2026 2030
2031 LInstruction* LChunkBuilder::DoTrapAllocationMemento(
2032 HTrapAllocationMemento* instr) {
2033 LOperand* object = UseRegister(instr->object());
2034 LOperand* temp = TempRegister();
2035 LTrapAllocationMemento* result =
2036 new(zone()) LTrapAllocationMemento(object, temp);
2037 return AssignEnvironment(result);
2038 }
2039
2040
2027 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { 2041 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
2028 bool needs_write_barrier = instr->NeedsWriteBarrier(); 2042 bool needs_write_barrier = instr->NeedsWriteBarrier();
2029 bool needs_write_barrier_for_map = !instr->transition().is_null() && 2043 bool needs_write_barrier_for_map = !instr->transition().is_null() &&
2030 instr->NeedsWriteBarrierForMap(); 2044 instr->NeedsWriteBarrierForMap();
2031 2045
2032 LOperand* obj; 2046 LOperand* obj;
2033 if (needs_write_barrier) { 2047 if (needs_write_barrier) {
2034 obj = instr->is_in_object() 2048 obj = instr->is_in_object()
2035 ? UseRegister(instr->object()) 2049 ? UseRegister(instr->object())
2036 : UseTempRegister(instr->object()); 2050 : UseTempRegister(instr->object());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
2083 } 2097 }
2084 2098
2085 2099
2086 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 2100 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
2087 LOperand* string = UseRegisterAtStart(instr->value()); 2101 LOperand* string = UseRegisterAtStart(instr->value());
2088 return DefineAsRegister(new(zone()) LStringLength(string)); 2102 return DefineAsRegister(new(zone()) LStringLength(string));
2089 } 2103 }
2090 2104
2091 2105
2092 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) { 2106 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
2107 info()->MarkAsDeferredCalling();
2093 LAllocateObject* result = 2108 LAllocateObject* result =
2094 new(zone()) LAllocateObject(TempRegister(), TempRegister()); 2109 new(zone()) LAllocateObject(TempRegister(), TempRegister());
2095 return AssignPointerMap(DefineAsRegister(result)); 2110 return AssignPointerMap(DefineAsRegister(result));
2096 } 2111 }
2097 2112
2098 2113
2114 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2115 info()->MarkAsDeferredCalling();
2116 LOperand* size = UseTempRegister(instr->size());
2117 LOperand* temp1 = TempRegister();
2118 LOperand* temp2 = TempRegister();
2119 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
2120 return AssignPointerMap(DefineAsRegister(result));
2121 }
2122
2123
2099 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) { 2124 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) {
2100 return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, v0), instr); 2125 return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, v0), instr);
2101 } 2126 }
2102 2127
2103 2128
2104 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { 2129 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
2105 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, v0), instr); 2130 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, v0), instr);
2106 } 2131 }
2107 2132
2108 2133
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 2345
2321 2346
2322 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2347 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2323 LOperand* object = UseRegister(instr->object()); 2348 LOperand* object = UseRegister(instr->object());
2324 LOperand* index = UseRegister(instr->index()); 2349 LOperand* index = UseRegister(instr->index());
2325 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2350 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2326 } 2351 }
2327 2352
2328 2353
2329 } } // namespace v8::internal 2354 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698