| OLD | NEW |
| 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 ASSERT(receiver->HasNamedInterceptor()); | 657 ASSERT(receiver->HasNamedInterceptor()); |
| 658 PropertyAttributes attr = NONE; | 658 PropertyAttributes attr = NONE; |
| 659 Handle<Object> result = JSObject::SetPropertyWithInterceptor( | 659 Handle<Object> result = JSObject::SetPropertyWithInterceptor( |
| 660 receiver, name, value, attr, ic.strict_mode()); | 660 receiver, name, value, attr, ic.strict_mode()); |
| 661 RETURN_IF_EMPTY_HANDLE(isolate, result); | 661 RETURN_IF_EMPTY_HANDLE(isolate, result); |
| 662 return *result; | 662 return *result; |
| 663 } | 663 } |
| 664 | 664 |
| 665 | 665 |
| 666 RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor) { | 666 RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor) { |
| 667 JSObject* receiver = JSObject::cast(args[0]); | 667 HandleScope scope(isolate); |
| 668 Handle<JSObject> receiver = args.at<JSObject>(0); |
| 668 ASSERT(args.smi_at(1) >= 0); | 669 ASSERT(args.smi_at(1) >= 0); |
| 669 uint32_t index = args.smi_at(1); | 670 uint32_t index = args.smi_at(1); |
| 670 return receiver->GetElementWithInterceptor(receiver, index); | 671 Handle<Object> result = |
| 672 JSObject::GetElementWithInterceptor(receiver, receiver, index); |
| 673 RETURN_IF_EMPTY_HANDLE(isolate, result); |
| 674 return *result; |
| 671 } | 675 } |
| 672 | 676 |
| 673 | 677 |
| 674 Handle<Code> StubCompiler::CompileLoadInitialize(Code::Flags flags) { | 678 Handle<Code> StubCompiler::CompileLoadInitialize(Code::Flags flags) { |
| 675 LoadIC::GenerateInitialize(masm()); | 679 LoadIC::GenerateInitialize(masm()); |
| 676 Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadInitialize"); | 680 Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadInitialize"); |
| 677 PROFILE(isolate(), | 681 PROFILE(isolate(), |
| 678 CodeCreateEvent(Logger::LOAD_INITIALIZE_TAG, *code, 0)); | 682 CodeCreateEvent(Logger::LOAD_INITIALIZE_TAG, *code, 0)); |
| 679 GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *code)); | 683 GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *code)); |
| 680 return code; | 684 return code; |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 Handle<FunctionTemplateInfo>( | 1493 Handle<FunctionTemplateInfo>( |
| 1490 FunctionTemplateInfo::cast(signature->receiver())); | 1494 FunctionTemplateInfo::cast(signature->receiver())); |
| 1491 } | 1495 } |
| 1492 } | 1496 } |
| 1493 | 1497 |
| 1494 is_simple_api_call_ = true; | 1498 is_simple_api_call_ = true; |
| 1495 } | 1499 } |
| 1496 | 1500 |
| 1497 | 1501 |
| 1498 } } // namespace v8::internal | 1502 } } // namespace v8::internal |
| OLD | NEW |