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

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

Issue 7167006: Merge arguments branch to bleeding merge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix test arguments.js." Created 9 years, 6 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/ic-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 // TODO(danno): we could be more clever here, perhaps having a special 2495 // TODO(danno): we could be more clever here, perhaps having a special
2496 // version of the stub that detects if the overflow case actually 2496 // version of the stub that detects if the overflow case actually
2497 // happens, and generate code that returns a double rather than int. 2497 // happens, and generate code that returns a double rather than int.
2498 DeoptimizeIf(negative, instr->environment()); 2498 DeoptimizeIf(negative, instr->environment());
2499 break; 2499 break;
2500 case JSObject::EXTERNAL_FLOAT_ELEMENTS: 2500 case JSObject::EXTERNAL_FLOAT_ELEMENTS:
2501 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: 2501 case JSObject::EXTERNAL_DOUBLE_ELEMENTS:
2502 case JSObject::FAST_ELEMENTS: 2502 case JSObject::FAST_ELEMENTS:
2503 case JSObject::FAST_DOUBLE_ELEMENTS: 2503 case JSObject::FAST_DOUBLE_ELEMENTS:
2504 case JSObject::DICTIONARY_ELEMENTS: 2504 case JSObject::DICTIONARY_ELEMENTS:
2505 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS:
2505 UNREACHABLE(); 2506 UNREACHABLE();
2506 break; 2507 break;
2507 } 2508 }
2508 } 2509 }
2509 } 2510 }
2510 2511
2511 2512
2512 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 2513 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
2513 ASSERT(ToRegister(instr->context()).is(esi)); 2514 ASSERT(ToRegister(instr->context()).is(esi));
2514 ASSERT(ToRegister(instr->object()).is(edx)); 2515 ASSERT(ToRegister(instr->object()).is(edx));
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 break; 3232 break;
3232 case JSObject::EXTERNAL_INT_ELEMENTS: 3233 case JSObject::EXTERNAL_INT_ELEMENTS:
3233 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: 3234 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS:
3234 __ mov(operand, value); 3235 __ mov(operand, value);
3235 break; 3236 break;
3236 case JSObject::EXTERNAL_FLOAT_ELEMENTS: 3237 case JSObject::EXTERNAL_FLOAT_ELEMENTS:
3237 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: 3238 case JSObject::EXTERNAL_DOUBLE_ELEMENTS:
3238 case JSObject::FAST_ELEMENTS: 3239 case JSObject::FAST_ELEMENTS:
3239 case JSObject::FAST_DOUBLE_ELEMENTS: 3240 case JSObject::FAST_DOUBLE_ELEMENTS:
3240 case JSObject::DICTIONARY_ELEMENTS: 3241 case JSObject::DICTIONARY_ELEMENTS:
3242 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS:
3241 UNREACHABLE(); 3243 UNREACHABLE();
3242 break; 3244 break;
3243 } 3245 }
3244 } 3246 }
3245 } 3247 }
3246 3248
3247 3249
3248 void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) { 3250 void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) {
3249 Register value = ToRegister(instr->value()); 3251 Register value = ToRegister(instr->value());
3250 Register elements = ToRegister(instr->object()); 3252 Register elements = ToRegister(instr->object());
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
4459 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 4461 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
4460 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); 4462 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
4461 } 4463 }
4462 4464
4463 4465
4464 #undef __ 4466 #undef __
4465 4467
4466 } } // namespace v8::internal 4468 } } // namespace v8::internal
4467 4469
4468 #endif // V8_TARGET_ARCH_IA32 4470 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698