| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 CodeGenerator::InlineFunctionGenerator | 372 CodeGenerator::InlineFunctionGenerator |
| 373 CodeGenerator::FindInlineFunctionGenerator(Runtime::FunctionId id) { | 373 CodeGenerator::FindInlineFunctionGenerator(Runtime::FunctionId id) { |
| 374 return kInlineFunctionGenerators[ | 374 return kInlineFunctionGenerators[ |
| 375 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction)]; | 375 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction)]; |
| 376 } | 376 } |
| 377 | 377 |
| 378 | 378 |
| 379 bool CodeGenerator::CheckForInlineRuntimeCall(CallRuntime* node) { | 379 bool CodeGenerator::CheckForInlineRuntimeCall(CallRuntime* node) { |
| 380 ZoneList<Expression*>* args = node->arguments(); | 380 ZoneList<Expression*>* args = node->arguments(); |
| 381 Handle<String> name = node->name(); | 381 Handle<String> name = node->name(); |
| 382 Runtime::Function* function = node->function(); | 382 const Runtime::Function* function = node->function(); |
| 383 if (function != NULL && function->intrinsic_type == Runtime::INLINE) { | 383 if (function != NULL && function->intrinsic_type == Runtime::INLINE) { |
| 384 InlineFunctionGenerator generator = | 384 InlineFunctionGenerator generator = |
| 385 FindInlineFunctionGenerator(function->function_id); | 385 FindInlineFunctionGenerator(function->function_id); |
| 386 if (generator != NULL) { | 386 if (generator != NULL) { |
| 387 ((*this).*(generator))(args); | 387 ((*this).*(generator))(args); |
| 388 return true; | 388 return true; |
| 389 } | 389 } |
| 390 } | 390 } |
| 391 return false; | 391 return false; |
| 392 } | 392 } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 } | 504 } |
| 505 } | 505 } |
| 506 | 506 |
| 507 | 507 |
| 508 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 508 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
| 509 info()->set_load_stub_cache(value); | 509 info()->set_load_stub_cache(value); |
| 510 } | 510 } |
| 511 | 511 |
| 512 | 512 |
| 513 } } // namespace v8::internal | 513 } } // namespace v8::internal |
| OLD | NEW |