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

Side by Side Diff: src/factory.cc

Issue 469733002: Rename the configuration flags of the LookupIterator (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/bootstrapper.cc ('k') | src/isolate.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/conversions.h" 8 #include "src/conversions.h"
9 #include "src/isolate-inl.h" 9 #include "src/isolate-inl.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 2151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 if (obj->remove_prototype()) { 2162 if (obj->remove_prototype()) {
2163 DCHECK(result->shared()->IsApiFunction()); 2163 DCHECK(result->shared()->IsApiFunction());
2164 DCHECK(!result->has_initial_map()); 2164 DCHECK(!result->has_initial_map());
2165 DCHECK(!result->has_prototype()); 2165 DCHECK(!result->has_prototype());
2166 return result; 2166 return result;
2167 } 2167 }
2168 2168
2169 if (prototype->IsTheHole()) { 2169 if (prototype->IsTheHole()) {
2170 #ifdef DEBUG 2170 #ifdef DEBUG
2171 LookupIterator it(handle(JSObject::cast(result->prototype())), 2171 LookupIterator it(handle(JSObject::cast(result->prototype())),
2172 constructor_string(), 2172 constructor_string(), LookupIterator::CHECK_PROPERTY);
2173 LookupIterator::CHECK_OWN_REAL);
2174 MaybeHandle<Object> maybe_prop = Object::GetProperty(&it); 2173 MaybeHandle<Object> maybe_prop = Object::GetProperty(&it);
2175 DCHECK(it.IsFound()); 2174 DCHECK(it.IsFound());
2176 DCHECK(maybe_prop.ToHandleChecked().is_identical_to(result)); 2175 DCHECK(maybe_prop.ToHandleChecked().is_identical_to(result));
2177 #endif 2176 #endif
2178 } else { 2177 } else {
2179 JSObject::AddProperty(handle(JSObject::cast(result->prototype())), 2178 JSObject::AddProperty(handle(JSObject::cast(result->prototype())),
2180 constructor_string(), result, DONT_ENUM); 2179 constructor_string(), result, DONT_ENUM);
2181 } 2180 }
2182 2181
2183 // Down from here is only valid for API functions that can be used as a 2182 // Down from here is only valid for API functions that can be used as a
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 return Handle<Object>::null(); 2374 return Handle<Object>::null();
2376 } 2375 }
2377 2376
2378 2377
2379 Handle<Object> Factory::ToBoolean(bool value) { 2378 Handle<Object> Factory::ToBoolean(bool value) {
2380 return value ? true_value() : false_value(); 2379 return value ? true_value() : false_value();
2381 } 2380 }
2382 2381
2383 2382
2384 } } // namespace v8::internal 2383 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698