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

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

Issue 10442015: Rollback of r11638, r11636 on trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 7 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/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-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 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 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 ASSERT(instr->value()->representation().IsTagged()); 2085 ASSERT(instr->value()->representation().IsTagged());
2086 2086
2087 LStoreKeyedGeneric* result = 2087 LStoreKeyedGeneric* result =
2088 new(zone()) LStoreKeyedGeneric(context, object, key, value); 2088 new(zone()) LStoreKeyedGeneric(context, object, key, value);
2089 return MarkAsCall(result, instr); 2089 return MarkAsCall(result, instr);
2090 } 2090 }
2091 2091
2092 2092
2093 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2093 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2094 HTransitionElementsKind* instr) { 2094 HTransitionElementsKind* instr) {
2095 ElementsKind from_kind = instr->original_map()->elements_kind(); 2095 if (instr->original_map()->elements_kind() == FAST_SMI_ONLY_ELEMENTS &&
2096 ElementsKind to_kind = instr->transitioned_map()->elements_kind(); 2096 instr->transitioned_map()->elements_kind() == FAST_ELEMENTS) {
2097 if (IsSimpleMapChangeTransition(from_kind, to_kind)) {
2098 LOperand* object = UseRegister(instr->object()); 2097 LOperand* object = UseRegister(instr->object());
2099 LOperand* new_map_reg = TempRegister(); 2098 LOperand* new_map_reg = TempRegister();
2100 LOperand* temp_reg = TempRegister(); 2099 LOperand* temp_reg = TempRegister();
2101 LTransitionElementsKind* result = 2100 LTransitionElementsKind* result =
2102 new(zone()) LTransitionElementsKind(object, new_map_reg, temp_reg); 2101 new(zone()) LTransitionElementsKind(object, new_map_reg, temp_reg);
2103 return DefineSameAsFirst(result); 2102 return DefineSameAsFirst(result);
2104 } else { 2103 } else {
2105 LOperand* object = UseFixed(instr->object(), eax); 2104 LOperand* object = UseFixed(instr->object(), eax);
2106 LOperand* fixed_object_reg = FixedTemp(edx); 2105 LOperand* fixed_object_reg = FixedTemp(edx);
2107 LOperand* new_map_reg = FixedTemp(ebx); 2106 LOperand* new_map_reg = FixedTemp(ebx);
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2430 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2432 LOperand* object = UseRegister(instr->object()); 2431 LOperand* object = UseRegister(instr->object());
2433 LOperand* index = UseTempRegister(instr->index()); 2432 LOperand* index = UseTempRegister(instr->index());
2434 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2433 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2435 } 2434 }
2436 2435
2437 2436
2438 } } // namespace v8::internal 2437 } } // namespace v8::internal
2439 2438
2440 #endif // V8_TARGET_ARCH_IA32 2439 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698