OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 | 1179 |
1180 #undef CALL_LOGGER_TAG | 1180 #undef CALL_LOGGER_TAG |
1181 | 1181 |
1182 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, const char* name) { | 1182 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, const char* name) { |
1183 // Check for allocation failures during stub compilation. | 1183 // Check for allocation failures during stub compilation. |
1184 if (failure_->IsFailure()) return failure_; | 1184 if (failure_->IsFailure()) return failure_; |
1185 | 1185 |
1186 // Create code object in the heap. | 1186 // Create code object in the heap. |
1187 CodeDesc desc; | 1187 CodeDesc desc; |
1188 masm_.GetCode(&desc); | 1188 masm_.GetCode(&desc); |
1189 Object* result = Heap::CreateCode(desc, NULL, flags, masm_.CodeObject()); | 1189 Object* result = Heap::CreateCode(desc, flags, masm_.CodeObject()); |
1190 #ifdef ENABLE_DISASSEMBLER | 1190 #ifdef ENABLE_DISASSEMBLER |
1191 if (FLAG_print_code_stubs && !result->IsFailure()) { | 1191 if (FLAG_print_code_stubs && !result->IsFailure()) { |
1192 Code::cast(result)->Disassemble(name); | 1192 Code::cast(result)->Disassemble(name); |
1193 } | 1193 } |
1194 #endif | 1194 #endif |
1195 return result; | 1195 return result; |
1196 } | 1196 } |
1197 | 1197 |
1198 | 1198 |
1199 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, String* name) { | 1199 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, String* name) { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 expected_receiver_type_ = | 1370 expected_receiver_type_ = |
1371 FunctionTemplateInfo::cast(signature->receiver()); | 1371 FunctionTemplateInfo::cast(signature->receiver()); |
1372 } | 1372 } |
1373 } | 1373 } |
1374 | 1374 |
1375 is_simple_api_call_ = true; | 1375 is_simple_api_call_ = true; |
1376 } | 1376 } |
1377 | 1377 |
1378 | 1378 |
1379 } } // namespace v8::internal | 1379 } } // namespace v8::internal |
OLD | NEW |