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

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
« no previous file with comments | « src/objects-inl.h ('k') | src/v8natives.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 Handle<FunctionTemplateInfo>( 1403 Handle<FunctionTemplateInfo>(
1404 FunctionTemplateInfo::cast(signature->receiver())); 1404 FunctionTemplateInfo::cast(signature->receiver()));
1405 } 1405 }
1406 } 1406 }
1407 1407
1408 is_simple_api_call_ = true; 1408 is_simple_api_call_ = true;
1409 } 1409 }
1410 1410
1411 1411
1412 } } // namespace v8::internal 1412 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698