Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: src/stub-cache.cc

Issue 392243002: Reimplement SetProperty using the LookupIterator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 Handle<Object> result; 582 Handle<Object> result;
583 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 583 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
584 isolate, result, JSObject::SetPropertyWithInterceptor( 584 isolate, result,
585 receiver, name, value, ic.strict_mode())); 585 JSObject::SetProperty(receiver, name, value, ic.strict_mode()));
586 return *result; 586 return *result;
587 } 587 }
588 588
589 589
590 RUNTIME_FUNCTION(KeyedLoadPropertyWithInterceptor) { 590 RUNTIME_FUNCTION(KeyedLoadPropertyWithInterceptor) {
591 HandleScope scope(isolate); 591 HandleScope scope(isolate);
592 Handle<JSObject> receiver = args.at<JSObject>(0); 592 Handle<JSObject> receiver = args.at<JSObject>(0);
593 ASSERT(args.smi_at(1) >= 0); 593 ASSERT(args.smi_at(1) >= 0);
594 uint32_t index = args.smi_at(1); 594 uint32_t index = args.smi_at(1);
595 Handle<Object> result; 595 Handle<Object> result;
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 Handle<FunctionTemplateInfo>( 1401 Handle<FunctionTemplateInfo>(
1402 FunctionTemplateInfo::cast(signature->receiver())); 1402 FunctionTemplateInfo::cast(signature->receiver()));
1403 } 1403 }
1404 } 1404 }
1405 1405
1406 is_simple_api_call_ = true; 1406 is_simple_api_call_ = true;
1407 } 1407 }
1408 1408
1409 1409
1410 } } // namespace v8::internal 1410 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698