| 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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 result_saved = true; | 1376 result_saved = true; |
| 1377 } | 1377 } |
| 1378 switch (property->kind()) { | 1378 switch (property->kind()) { |
| 1379 case ObjectLiteral::Property::CONSTANT: | 1379 case ObjectLiteral::Property::CONSTANT: |
| 1380 UNREACHABLE(); | 1380 UNREACHABLE(); |
| 1381 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1381 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1382 ASSERT(!CompileTimeValue::IsCompileTimeValue(value)); | 1382 ASSERT(!CompileTimeValue::IsCompileTimeValue(value)); |
| 1383 // Fall through. | 1383 // Fall through. |
| 1384 case ObjectLiteral::Property::COMPUTED: | 1384 case ObjectLiteral::Property::COMPUTED: |
| 1385 if (key->handle()->IsSymbol()) { | 1385 if (key->handle()->IsSymbol()) { |
| 1386 VisitForAccumulatorValue(value); | |
| 1387 __ Move(rcx, key->handle()); | |
| 1388 __ movq(rdx, Operand(rsp, 0)); | |
| 1389 if (property->emit_store()) { | 1386 if (property->emit_store()) { |
| 1390 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); | 1387 VisitForAccumulatorValue(value); |
| 1388 __ Move(rcx, key->handle()); |
| 1389 __ movq(rdx, Operand(rsp, 0)); |
| 1390 Handle<Code> ic(Builtins::builtin( |
| 1391 is_strict() ? Builtins::StoreIC_Initialize_Strict |
| 1392 : Builtins::StoreIC_Initialize)); |
| 1391 EmitCallIC(ic, RelocInfo::CODE_TARGET); | 1393 EmitCallIC(ic, RelocInfo::CODE_TARGET); |
| 1392 PrepareForBailoutForId(key->id(), NO_REGISTERS); | 1394 PrepareForBailoutForId(key->id(), NO_REGISTERS); |
| 1395 } else { |
| 1396 VisitForEffect(value); |
| 1393 } | 1397 } |
| 1394 break; | 1398 break; |
| 1395 } | 1399 } |
| 1396 // Fall through. | 1400 // Fall through. |
| 1397 case ObjectLiteral::Property::PROTOTYPE: | 1401 case ObjectLiteral::Property::PROTOTYPE: |
| 1398 __ push(Operand(rsp, 0)); // Duplicate receiver. | 1402 __ push(Operand(rsp, 0)); // Duplicate receiver. |
| 1399 VisitForStackValue(key); | 1403 VisitForStackValue(key); |
| 1400 VisitForStackValue(value); | 1404 VisitForStackValue(value); |
| 1401 if (property->emit_store()) { | 1405 if (property->emit_store()) { |
| 1402 __ Push(Smi::FromInt(NONE)); // PropertyAttributes | 1406 __ Push(Smi::FromInt(NONE)); // PropertyAttributes |
| (...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3975 __ ret(0); | 3979 __ ret(0); |
| 3976 } | 3980 } |
| 3977 | 3981 |
| 3978 | 3982 |
| 3979 #undef __ | 3983 #undef __ |
| 3980 | 3984 |
| 3981 | 3985 |
| 3982 } } // namespace v8::internal | 3986 } } // namespace v8::internal |
| 3983 | 3987 |
| 3984 #endif // V8_TARGET_ARCH_X64 | 3988 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |