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

Side by Side Diff: src/ic.cc

Issue 464093002: ES6: Make Map/Set constructors support iterable values (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/collection.js ('k') | src/weak_collection.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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 } 2098 }
2099 2099
2100 2100
2101 // Used from ic-<arch>.cc. 2101 // Used from ic-<arch>.cc.
2102 RUNTIME_FUNCTION(LoadIC_Miss) { 2102 RUNTIME_FUNCTION(LoadIC_Miss) {
2103 TimerEventScope<TimerEventIcMiss> timer(isolate); 2103 TimerEventScope<TimerEventIcMiss> timer(isolate);
2104 HandleScope scope(isolate); 2104 HandleScope scope(isolate);
2105 DCHECK(args.length() == 2); 2105 DCHECK(args.length() == 2);
2106 LoadIC ic(IC::NO_EXTRA_FRAME, isolate); 2106 LoadIC ic(IC::NO_EXTRA_FRAME, isolate);
2107 Handle<Object> receiver = args.at<Object>(0); 2107 Handle<Object> receiver = args.at<Object>(0);
2108 Handle<String> key = args.at<String>(1); 2108 Handle<Name> key = args.at<Name>(1);
2109 ic.UpdateState(receiver, key); 2109 ic.UpdateState(receiver, key);
2110 Handle<Object> result; 2110 Handle<Object> result;
2111 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key)); 2111 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key));
2112 return *result; 2112 return *result;
2113 } 2113 }
2114 2114
2115 2115
2116 // Used from ic-<arch>.cc 2116 // Used from ic-<arch>.cc
2117 RUNTIME_FUNCTION(KeyedLoadIC_Miss) { 2117 RUNTIME_FUNCTION(KeyedLoadIC_Miss) {
2118 TimerEventScope<TimerEventIcMiss> timer(isolate); 2118 TimerEventScope<TimerEventIcMiss> timer(isolate);
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
3170 #undef ADDR 3170 #undef ADDR
3171 }; 3171 };
3172 3172
3173 3173
3174 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3174 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3175 return IC_utilities[id]; 3175 return IC_utilities[id];
3176 } 3176 }
3177 3177
3178 3178
3179 } } // namespace v8::internal 3179 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/collection.js ('k') | src/weak_collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698