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 654 matching lines...) Loading... |
665 receiver, name, value, attr, ic.strict_mode())); | 665 receiver, name, value, attr, ic.strict_mode())); |
666 return *result; | 666 return *result; |
667 } | 667 } |
668 | 668 |
669 | 669 |
670 RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor) { | 670 RUNTIME_FUNCTION(MaybeObject*, KeyedLoadPropertyWithInterceptor) { |
671 HandleScope scope(isolate); | 671 HandleScope scope(isolate); |
672 Handle<JSObject> receiver = args.at<JSObject>(0); | 672 Handle<JSObject> receiver = args.at<JSObject>(0); |
673 ASSERT(args.smi_at(1) >= 0); | 673 ASSERT(args.smi_at(1) >= 0); |
674 uint32_t index = args.smi_at(1); | 674 uint32_t index = args.smi_at(1); |
675 Handle<Object> result = | 675 Handle<Object> result; |
676 JSObject::GetElementWithInterceptor(receiver, receiver, index); | 676 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
677 RETURN_IF_EMPTY_HANDLE(isolate, result); | 677 isolate, result, |
| 678 JSObject::GetElementWithInterceptor(receiver, receiver, index)); |
678 return *result; | 679 return *result; |
679 } | 680 } |
680 | 681 |
681 | 682 |
682 Handle<Code> StubCompiler::CompileLoadInitialize(Code::Flags flags) { | 683 Handle<Code> StubCompiler::CompileLoadInitialize(Code::Flags flags) { |
683 LoadIC::GenerateInitialize(masm()); | 684 LoadIC::GenerateInitialize(masm()); |
684 Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadInitialize"); | 685 Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadInitialize"); |
685 PROFILE(isolate(), | 686 PROFILE(isolate(), |
686 CodeCreateEvent(Logger::LOAD_INITIALIZE_TAG, *code, 0)); | 687 CodeCreateEvent(Logger::LOAD_INITIALIZE_TAG, *code, 0)); |
687 GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *code)); | 688 GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *code)); |
(...skipping 809 matching lines...) Loading... |
1497 Handle<FunctionTemplateInfo>( | 1498 Handle<FunctionTemplateInfo>( |
1498 FunctionTemplateInfo::cast(signature->receiver())); | 1499 FunctionTemplateInfo::cast(signature->receiver())); |
1499 } | 1500 } |
1500 } | 1501 } |
1501 | 1502 |
1502 is_simple_api_call_ = true; | 1503 is_simple_api_call_ = true; |
1503 } | 1504 } |
1504 | 1505 |
1505 | 1506 |
1506 } } // namespace v8::internal | 1507 } } // namespace v8::internal |
OLD | NEW |