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

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

Issue 10209027: Implement tracking and optimizations of packed arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: New upload 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
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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 ASSERT(instr->object()->representation().IsTagged()); 2037 ASSERT(instr->object()->representation().IsTagged());
2038 ASSERT(instr->key()->representation().IsTagged()); 2038 ASSERT(instr->key()->representation().IsTagged());
2039 ASSERT(instr->value()->representation().IsTagged()); 2039 ASSERT(instr->value()->representation().IsTagged());
2040 2040
2041 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr); 2041 return MarkAsCall(new(zone()) LStoreKeyedGeneric(obj, key, val), instr);
2042 } 2042 }
2043 2043
2044 2044
2045 LInstruction* LChunkBuilder::DoTransitionElementsKind( 2045 LInstruction* LChunkBuilder::DoTransitionElementsKind(
2046 HTransitionElementsKind* instr) { 2046 HTransitionElementsKind* instr) {
2047 if (instr->original_map()->elements_kind() == FAST_SMI_ONLY_ELEMENTS && 2047 if (IsFastSmiOnlyObject(instr->original_map()->elements_kind()) &&
2048 instr->transitioned_map()->elements_kind() == FAST_ELEMENTS) { 2048 IsFastObjectElements(instr->transitioned_map()->elements_kind())) {
2049 LOperand* object = UseRegister(instr->object()); 2049 LOperand* object = UseRegister(instr->object());
2050 LOperand* new_map_reg = TempRegister(); 2050 LOperand* new_map_reg = TempRegister();
2051 LTransitionElementsKind* result = 2051 LTransitionElementsKind* result =
2052 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL); 2052 new(zone()) LTransitionElementsKind(object, new_map_reg, NULL);
2053 return DefineSameAsFirst(result); 2053 return DefineSameAsFirst(result);
2054 } else { 2054 } else {
2055 LOperand* object = UseFixed(instr->object(), a0); 2055 LOperand* object = UseFixed(instr->object(), a0);
2056 LOperand* fixed_object_reg = FixedTemp(a2); 2056 LOperand* fixed_object_reg = FixedTemp(a2);
2057 LOperand* new_map_reg = FixedTemp(a3); 2057 LOperand* new_map_reg = FixedTemp(a3);
2058 LTransitionElementsKind* result = 2058 LTransitionElementsKind* result =
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 2337
2338 2338
2339 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2339 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2340 LOperand* object = UseRegister(instr->object()); 2340 LOperand* object = UseRegister(instr->object());
2341 LOperand* index = UseRegister(instr->index()); 2341 LOperand* index = UseRegister(instr->index());
2342 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2342 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2343 } 2343 }
2344 2344
2345 2345
2346 } } // namespace v8::internal 2346 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698