Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: src/full-codegen.cc

Issue 4070003: [Isolates] Convert more static data either to read-only or to per-isolate. (Closed)
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 FullCodeGenerator::InlineFunctionGenerator 586 FullCodeGenerator::InlineFunctionGenerator
587 FullCodeGenerator::FindInlineFunctionGenerator(Runtime::FunctionId id) { 587 FullCodeGenerator::FindInlineFunctionGenerator(Runtime::FunctionId id) {
588 return kInlineFunctionGenerators[ 588 return kInlineFunctionGenerators[
589 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction)]; 589 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction)];
590 } 590 }
591 591
592 592
593 void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* node) { 593 void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* node) {
594 ZoneList<Expression*>* args = node->arguments(); 594 ZoneList<Expression*>* args = node->arguments();
595 Handle<String> name = node->name(); 595 Handle<String> name = node->name();
596 Runtime::Function* function = node->function(); 596 const Runtime::Function* function = node->function();
597 ASSERT(function != NULL); 597 ASSERT(function != NULL);
598 ASSERT(function->intrinsic_type == Runtime::INLINE); 598 ASSERT(function->intrinsic_type == Runtime::INLINE);
599 InlineFunctionGenerator generator = 599 InlineFunctionGenerator generator =
600 FindInlineFunctionGenerator(function->function_id); 600 FindInlineFunctionGenerator(function->function_id);
601 ASSERT(generator != NULL); 601 ASSERT(generator != NULL);
602 ((*this).*(generator))(args); 602 ((*this).*(generator))(args);
603 } 603 }
604 604
605 605
606 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { 606 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) {
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 ASSERT(args->length() == 1); 1229 ASSERT(args->length() == 1);
1230 VisitForStackValue(args->at(0)); 1230 VisitForStackValue(args->at(0));
1231 __ CallRuntime(Runtime::kRegExpCloneResult, 1); 1231 __ CallRuntime(Runtime::kRegExpCloneResult, 1);
1232 context()->Plug(result_register()); 1232 context()->Plug(result_register());
1233 } 1233 }
1234 1234
1235 #undef __ 1235 #undef __
1236 1236
1237 1237
1238 } } // namespace v8::internal 1238 } } // namespace v8::internal
OLDNEW
« src/frames.h ('K') | « src/frames-inl.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698