OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/api.h" | 7 #include "src/api.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 | 572 |
573 | 573 |
574 RUNTIME_FUNCTION(StoreInterceptorProperty) { | 574 RUNTIME_FUNCTION(StoreInterceptorProperty) { |
575 HandleScope scope(isolate); | 575 HandleScope scope(isolate); |
576 ASSERT(args.length() == 3); | 576 ASSERT(args.length() == 3); |
577 StoreIC ic(IC::NO_EXTRA_FRAME, isolate); | 577 StoreIC ic(IC::NO_EXTRA_FRAME, isolate); |
578 Handle<JSObject> receiver = args.at<JSObject>(0); | 578 Handle<JSObject> receiver = args.at<JSObject>(0); |
579 Handle<Name> name = args.at<Name>(1); | 579 Handle<Name> name = args.at<Name>(1); |
580 Handle<Object> value = args.at<Object>(2); | 580 Handle<Object> value = args.at<Object>(2); |
581 ASSERT(receiver->HasNamedInterceptor()); | 581 ASSERT(receiver->HasNamedInterceptor()); |
582 PropertyAttributes attr = NONE; | |
583 Handle<Object> result; | 582 Handle<Object> result; |
584 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 583 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
585 isolate, result, | 584 isolate, result, JSObject::SetPropertyWithInterceptor( |
586 JSObject::SetPropertyWithInterceptor( | 585 receiver, name, value, ic.strict_mode())); |
587 receiver, name, value, attr, ic.strict_mode())); | |
588 return *result; | 586 return *result; |
589 } | 587 } |
590 | 588 |
591 | 589 |
592 RUNTIME_FUNCTION(KeyedLoadPropertyWithInterceptor) { | 590 RUNTIME_FUNCTION(KeyedLoadPropertyWithInterceptor) { |
593 HandleScope scope(isolate); | 591 HandleScope scope(isolate); |
594 Handle<JSObject> receiver = args.at<JSObject>(0); | 592 Handle<JSObject> receiver = args.at<JSObject>(0); |
595 ASSERT(args.smi_at(1) >= 0); | 593 ASSERT(args.smi_at(1) >= 0); |
596 uint32_t index = args.smi_at(1); | 594 uint32_t index = args.smi_at(1); |
597 Handle<Object> result; | 595 Handle<Object> result; |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1403 Handle<FunctionTemplateInfo>( | 1401 Handle<FunctionTemplateInfo>( |
1404 FunctionTemplateInfo::cast(signature->receiver())); | 1402 FunctionTemplateInfo::cast(signature->receiver())); |
1405 } | 1403 } |
1406 } | 1404 } |
1407 | 1405 |
1408 is_simple_api_call_ = true; | 1406 is_simple_api_call_ = true; |
1409 } | 1407 } |
1410 | 1408 |
1411 | 1409 |
1412 } } // namespace v8::internal | 1410 } } // namespace v8::internal |
OLD | NEW |