| OLD | NEW |
| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "api.h" | 7 #include "api.h" |
| 8 #include "arguments.h" | 8 #include "arguments.h" |
| 9 #include "ast.h" | 9 #include "ast.h" |
| 10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 Handle<Name> name) { | 752 Handle<Name> name) { |
| 753 return (FLAG_print_code_stubs && !name.is_null() && name->IsString()) | 753 return (FLAG_print_code_stubs && !name.is_null() && name->IsString()) |
| 754 ? GetCodeWithFlags(flags, Handle<String>::cast(name)->ToCString().get()) | 754 ? GetCodeWithFlags(flags, Handle<String>::cast(name)->ToCString().get()) |
| 755 : GetCodeWithFlags(flags, NULL); | 755 : GetCodeWithFlags(flags, NULL); |
| 756 } | 756 } |
| 757 | 757 |
| 758 | 758 |
| 759 void StubCompiler::LookupPostInterceptor(Handle<JSObject> holder, | 759 void StubCompiler::LookupPostInterceptor(Handle<JSObject> holder, |
| 760 Handle<Name> name, | 760 Handle<Name> name, |
| 761 LookupResult* lookup) { | 761 LookupResult* lookup) { |
| 762 holder->LocalLookupRealNamedProperty(name, lookup); | 762 holder->LookupOwnRealNamedProperty(name, lookup); |
| 763 if (lookup->IsFound()) return; | 763 if (lookup->IsFound()) return; |
| 764 if (holder->GetPrototype()->IsNull()) return; | 764 if (holder->GetPrototype()->IsNull()) return; |
| 765 holder->GetPrototype()->Lookup(name, lookup); | 765 holder->GetPrototype()->Lookup(name, lookup); |
| 766 } | 766 } |
| 767 | 767 |
| 768 | 768 |
| 769 #define __ ACCESS_MASM(masm()) | 769 #define __ ACCESS_MASM(masm()) |
| 770 | 770 |
| 771 | 771 |
| 772 Register LoadStubCompiler::HandlerFrontendHeader( | 772 Register LoadStubCompiler::HandlerFrontendHeader( |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 Handle<FunctionTemplateInfo>( | 1481 Handle<FunctionTemplateInfo>( |
| 1482 FunctionTemplateInfo::cast(signature->receiver())); | 1482 FunctionTemplateInfo::cast(signature->receiver())); |
| 1483 } | 1483 } |
| 1484 } | 1484 } |
| 1485 | 1485 |
| 1486 is_simple_api_call_ = true; | 1486 is_simple_api_call_ = true; |
| 1487 } | 1487 } |
| 1488 | 1488 |
| 1489 | 1489 |
| 1490 } } // namespace v8::internal | 1490 } } // namespace v8::internal |
| OLD | NEW |