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

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

Issue 18034024: Remove the compiled_transitions flag and cleanup the unused code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 7 years, 4 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/ic.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 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 HTransitionElementsKind* instr) { 2408 HTransitionElementsKind* instr) {
2409 LOperand* object = UseRegister(instr->object()); 2409 LOperand* object = UseRegister(instr->object());
2410 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) { 2410 if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
2411 LOperand* object = UseRegister(instr->object()); 2411 LOperand* object = UseRegister(instr->object());
2412 LOperand* new_map_reg = TempRegister(); 2412 LOperand* new_map_reg = TempRegister();
2413 LOperand* temp_reg = TempRegister(); 2413 LOperand* temp_reg = TempRegister();
2414 LTransitionElementsKind* result = 2414 LTransitionElementsKind* result =
2415 new(zone()) LTransitionElementsKind(object, NULL, 2415 new(zone()) LTransitionElementsKind(object, NULL,
2416 new_map_reg, temp_reg); 2416 new_map_reg, temp_reg);
2417 return result; 2417 return result;
2418 } else if (FLAG_compiled_transitions) { 2418 } else {
2419 LOperand* context = UseRegister(instr->context()); 2419 LOperand* context = UseRegister(instr->context());
2420 LTransitionElementsKind* result = 2420 LTransitionElementsKind* result =
2421 new(zone()) LTransitionElementsKind(object, context, NULL, NULL); 2421 new(zone()) LTransitionElementsKind(object, context, NULL, NULL);
2422 return AssignPointerMap(result); 2422 return AssignPointerMap(result);
2423 } else {
2424 LOperand* object = UseFixed(instr->object(), eax);
2425 LOperand* fixed_object_reg = FixedTemp(edx);
2426 LOperand* new_map_reg = FixedTemp(ebx);
2427 LTransitionElementsKind* result =
2428 new(zone()) LTransitionElementsKind(object,
2429 NULL,
2430 new_map_reg,
2431 fixed_object_reg);
2432 return MarkAsCall(result, instr);
2433 } 2423 }
2434 } 2424 }
2435 2425
2436 2426
2437 LInstruction* LChunkBuilder::DoTrapAllocationMemento( 2427 LInstruction* LChunkBuilder::DoTrapAllocationMemento(
2438 HTrapAllocationMemento* instr) { 2428 HTrapAllocationMemento* instr) {
2439 LOperand* object = UseRegister(instr->object()); 2429 LOperand* object = UseRegister(instr->object());
2440 LOperand* temp = TempRegister(); 2430 LOperand* temp = TempRegister();
2441 LTrapAllocationMemento* result = 2431 LTrapAllocationMemento* result =
2442 new(zone()) LTrapAllocationMemento(object, temp); 2432 new(zone()) LTrapAllocationMemento(object, temp);
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2775 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2765 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2776 LOperand* object = UseRegister(instr->object()); 2766 LOperand* object = UseRegister(instr->object());
2777 LOperand* index = UseTempRegister(instr->index()); 2767 LOperand* index = UseTempRegister(instr->index());
2778 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2768 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2779 } 2769 }
2780 2770
2781 2771
2782 } } // namespace v8::internal 2772 } } // namespace v8::internal
2783 2773
2784 #endif // V8_TARGET_ARCH_IA32 2774 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698