| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 <ostream> | 5 #include <ostream> |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/compilation-dependencies.h" | 8 #include "src/compilation-dependencies.h" |
| 9 #include "src/compiler/access-info.h" | 9 #include "src/compiler/access-info.h" |
| 10 #include "src/compiler/type-cache.h" | 10 #include "src/compiler/type-cache.h" |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 // Don't search on the prototype chain for special indices in case of | 385 // Don't search on the prototype chain for special indices in case of |
| 386 // integer indexed exotic objects (see ES6 section 9.4.5). | 386 // integer indexed exotic objects (see ES6 section 9.4.5). |
| 387 if (map->IsJSTypedArrayMap() && name->IsString() && | 387 if (map->IsJSTypedArrayMap() && name->IsString() && |
| 388 IsSpecialIndex(isolate()->unicode_cache(), String::cast(*name))) { | 388 IsSpecialIndex(isolate()->unicode_cache(), String::cast(*name))) { |
| 389 return false; | 389 return false; |
| 390 } | 390 } |
| 391 | 391 |
| 392 // Don't search on the prototype when storing in literals | 392 // Don't search on the prototype when storing in literals |
| 393 if (access_mode == AccessMode::kStoreInLiteral) { | 393 if (access_mode == AccessMode::kStoreInLiteral) { |
| 394 return false; | 394 return LookupTransition(receiver_map, name, holder, access_info); |
| 395 } | 395 } |
| 396 | 396 |
| 397 // Don't lookup private symbols on the prototype chain. | 397 // Don't lookup private symbols on the prototype chain. |
| 398 if (name->IsPrivate()) return false; | 398 if (name->IsPrivate()) return false; |
| 399 | 399 |
| 400 // Walk up the prototype chain. | 400 // Walk up the prototype chain. |
| 401 if (!map->prototype()->IsJSObject()) { | 401 if (!map->prototype()->IsJSObject()) { |
| 402 // Perform the implicit ToObject for primitives here. | 402 // Perform the implicit ToObject for primitives here. |
| 403 // Implemented according to ES6 section 7.3.2 GetV (V, P). | 403 // Implemented according to ES6 section 7.3.2 GetV (V, P). |
| 404 Handle<JSFunction> constructor; | 404 Handle<JSFunction> constructor; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 } | 558 } |
| 559 return false; | 559 return false; |
| 560 } | 560 } |
| 561 | 561 |
| 562 | 562 |
| 563 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); } | 563 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); } |
| 564 | 564 |
| 565 } // namespace compiler | 565 } // namespace compiler |
| 566 } // namespace internal | 566 } // namespace internal |
| 567 } // namespace v8 | 567 } // namespace v8 |
| OLD | NEW |