OLD | NEW |
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 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2497 // TODO(danno): we could be more clever here, perhaps having a special | 2497 // TODO(danno): we could be more clever here, perhaps having a special |
2498 // version of the stub that detects if the overflow case actually | 2498 // version of the stub that detects if the overflow case actually |
2499 // happens, and generate code that returns a double rather than int. | 2499 // happens, and generate code that returns a double rather than int. |
2500 DeoptimizeIf(negative, instr->environment()); | 2500 DeoptimizeIf(negative, instr->environment()); |
2501 break; | 2501 break; |
2502 case JSObject::EXTERNAL_FLOAT_ELEMENTS: | 2502 case JSObject::EXTERNAL_FLOAT_ELEMENTS: |
2503 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: | 2503 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: |
2504 case JSObject::FAST_ELEMENTS: | 2504 case JSObject::FAST_ELEMENTS: |
2505 case JSObject::FAST_DOUBLE_ELEMENTS: | 2505 case JSObject::FAST_DOUBLE_ELEMENTS: |
2506 case JSObject::DICTIONARY_ELEMENTS: | 2506 case JSObject::DICTIONARY_ELEMENTS: |
| 2507 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS: |
2507 UNREACHABLE(); | 2508 UNREACHABLE(); |
2508 break; | 2509 break; |
2509 } | 2510 } |
2510 } | 2511 } |
2511 } | 2512 } |
2512 | 2513 |
2513 | 2514 |
2514 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 2515 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
2515 ASSERT(ToRegister(instr->context()).is(esi)); | 2516 ASSERT(ToRegister(instr->context()).is(esi)); |
2516 ASSERT(ToRegister(instr->object()).is(edx)); | 2517 ASSERT(ToRegister(instr->object()).is(edx)); |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3233 break; | 3234 break; |
3234 case JSObject::EXTERNAL_INT_ELEMENTS: | 3235 case JSObject::EXTERNAL_INT_ELEMENTS: |
3235 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: | 3236 case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: |
3236 __ mov(operand, value); | 3237 __ mov(operand, value); |
3237 break; | 3238 break; |
3238 case JSObject::EXTERNAL_FLOAT_ELEMENTS: | 3239 case JSObject::EXTERNAL_FLOAT_ELEMENTS: |
3239 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: | 3240 case JSObject::EXTERNAL_DOUBLE_ELEMENTS: |
3240 case JSObject::FAST_ELEMENTS: | 3241 case JSObject::FAST_ELEMENTS: |
3241 case JSObject::FAST_DOUBLE_ELEMENTS: | 3242 case JSObject::FAST_DOUBLE_ELEMENTS: |
3242 case JSObject::DICTIONARY_ELEMENTS: | 3243 case JSObject::DICTIONARY_ELEMENTS: |
| 3244 case JSObject::NON_STRICT_ARGUMENTS_ELEMENTS: |
3243 UNREACHABLE(); | 3245 UNREACHABLE(); |
3244 break; | 3246 break; |
3245 } | 3247 } |
3246 } | 3248 } |
3247 } | 3249 } |
3248 | 3250 |
3249 | 3251 |
3250 void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) { | 3252 void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) { |
3251 Register value = ToRegister(instr->value()); | 3253 Register value = ToRegister(instr->value()); |
3252 Register elements = ToRegister(instr->object()); | 3254 Register elements = ToRegister(instr->object()); |
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4461 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 4463 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
4462 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4464 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
4463 } | 4465 } |
4464 | 4466 |
4465 | 4467 |
4466 #undef __ | 4468 #undef __ |
4467 | 4469 |
4468 } } // namespace v8::internal | 4470 } } // namespace v8::internal |
4469 | 4471 |
4470 #endif // V8_TARGET_ARCH_IA32 | 4472 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |