| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 #ifdef ENABLE_DISASSEMBLER | 1103 #ifdef ENABLE_DISASSEMBLER |
| 1104 if (FLAG_print_code_stubs) code->Disassemble(name); | 1104 if (FLAG_print_code_stubs) code->Disassemble(name); |
| 1105 #endif | 1105 #endif |
| 1106 return code; | 1106 return code; |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 | 1109 |
| 1110 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, | 1110 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, |
| 1111 Handle<Name> name) { | 1111 Handle<Name> name) { |
| 1112 return (FLAG_print_code_stubs && !name.is_null() && name->IsString()) | 1112 return (FLAG_print_code_stubs && !name.is_null() && name->IsString()) |
| 1113 ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString()) | 1113 ? GetCodeWithFlags(flags, Handle<String>::cast(name)->ToCString().get()) |
| 1114 : GetCodeWithFlags(flags, NULL); | 1114 : GetCodeWithFlags(flags, NULL); |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 | 1117 |
| 1118 void StubCompiler::LookupPostInterceptor(Handle<JSObject> holder, | 1118 void StubCompiler::LookupPostInterceptor(Handle<JSObject> holder, |
| 1119 Handle<Name> name, | 1119 Handle<Name> name, |
| 1120 LookupResult* lookup) { | 1120 LookupResult* lookup) { |
| 1121 holder->LocalLookupRealNamedProperty(*name, lookup); | 1121 holder->LocalLookupRealNamedProperty(*name, lookup); |
| 1122 if (lookup->IsFound()) return; | 1122 if (lookup->IsFound()) return; |
| 1123 if (holder->GetPrototype()->IsNull()) return; | 1123 if (holder->GetPrototype()->IsNull()) return; |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1897 Handle<FunctionTemplateInfo>( | 1897 Handle<FunctionTemplateInfo>( |
| 1898 FunctionTemplateInfo::cast(signature->receiver())); | 1898 FunctionTemplateInfo::cast(signature->receiver())); |
| 1899 } | 1899 } |
| 1900 } | 1900 } |
| 1901 | 1901 |
| 1902 is_simple_api_call_ = true; | 1902 is_simple_api_call_ = true; |
| 1903 } | 1903 } |
| 1904 | 1904 |
| 1905 | 1905 |
| 1906 } } // namespace v8::internal | 1906 } } // namespace v8::internal |
| OLD | NEW |