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

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

Issue 9425045: Support fast case for-in in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
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 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 2401
2402 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2402 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2403 LOperand* context = UseFixed(instr->context(), esi); 2403 LOperand* context = UseFixed(instr->context(), esi);
2404 LOperand* key = UseOrConstantAtStart(instr->key()); 2404 LOperand* key = UseOrConstantAtStart(instr->key());
2405 LOperand* object = UseOrConstantAtStart(instr->object()); 2405 LOperand* object = UseOrConstantAtStart(instr->object());
2406 LIn* result = new(zone()) LIn(context, key, object); 2406 LIn* result = new(zone()) LIn(context, key, object);
2407 return MarkAsCall(DefineFixed(result, eax), instr); 2407 return MarkAsCall(DefineFixed(result, eax), instr);
2408 } 2408 }
2409 2409
2410 2410
2411 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) {
2412 LOperand* context = UseFixed(instr->context(), esi);
2413 LOperand* object = UseFixed(instr->enumerable(), eax);
2414 LForInPrepareMap* result = new(zone()) LForInPrepareMap(context, object);
2415 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY);
2416 }
2417
2418
2419 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) {
2420 LOperand* object = UseRegister(instr->enumerable());
2421 LOperand* keys = UseRegister(instr->keys());
2422 return AssignEnvironment(DefineAsRegister(
2423 new(zone()) LForInCacheArray(object, keys)));
2424 }
2425
2426
2427 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) {
2428 LOperand* value = UseRegisterAtStart(instr->value());
2429 LOperand* map = UseRegisterAtStart(instr->map());
2430 return AssignEnvironment(DefineAsRegister(new(zone()) LCheckMapValue(value, ma p)));
fschneider 2012/02/20 14:56:06 Long line.
fschneider 2012/02/20 14:56:06 Since the result of the HCheckMapValue instruction
2431 }
2432
2433
2434 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2435 LOperand* object = UseRegister(instr->object());
2436 LOperand* index = UseTempRegister(instr->index());
2437 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2438 }
2439
2440
2441
2411 } } // namespace v8::internal 2442 } } // namespace v8::internal
2412 2443
2413 #endif // V8_TARGET_ARCH_IA32 2444 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698