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->LocalLookupRealNamedProperty(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( |
773 Handle<HeapType> type, | 773 Handle<HeapType> type, |
774 Register object_reg, | 774 Register object_reg, |
775 Handle<JSObject> holder, | 775 Handle<JSObject> holder, |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1484 Handle<FunctionTemplateInfo>( | 1484 Handle<FunctionTemplateInfo>( |
1485 FunctionTemplateInfo::cast(signature->receiver())); | 1485 FunctionTemplateInfo::cast(signature->receiver())); |
1486 } | 1486 } |
1487 } | 1487 } |
1488 | 1488 |
1489 is_simple_api_call_ = true; | 1489 is_simple_api_call_ = true; |
1490 } | 1490 } |
1491 | 1491 |
1492 | 1492 |
1493 } } // namespace v8::internal | 1493 } } // namespace v8::internal |
OLD | NEW |