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/codegen.cc

Issue 652224: Proof-of-concept RegExp-cache for exec, test, replace. (Closed)
Patch Set: Cache regexp operations. Created 10 years, 9 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
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 {&CodeGenerator::GenerateIsObject, "_IsObject"}, 374 {&CodeGenerator::GenerateIsObject, "_IsObject"},
375 {&CodeGenerator::GenerateIsFunction, "_IsFunction"}, 375 {&CodeGenerator::GenerateIsFunction, "_IsFunction"},
376 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"}, 376 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"},
377 {&CodeGenerator::GenerateStringAdd, "_StringAdd"}, 377 {&CodeGenerator::GenerateStringAdd, "_StringAdd"},
378 {&CodeGenerator::GenerateSubString, "_SubString"}, 378 {&CodeGenerator::GenerateSubString, "_SubString"},
379 {&CodeGenerator::GenerateStringCompare, "_StringCompare"}, 379 {&CodeGenerator::GenerateStringCompare, "_StringCompare"},
380 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"}, 380 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"},
381 {&CodeGenerator::GenerateNumberToString, "_NumberToString"}, 381 {&CodeGenerator::GenerateNumberToString, "_NumberToString"},
382 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, 382 {&CodeGenerator::GenerateMathSin, "_Math_sin"},
383 {&CodeGenerator::GenerateMathCos, "_Math_cos"}, 383 {&CodeGenerator::GenerateMathCos, "_Math_cos"},
384 {&CodeGenerator::GenerateIsIdentical, "_IsIdentical"},
385 {&CodeGenerator::GenerateRegExpId, "_RegExpId"},
384 }; 386 };
385 387
386 388
387 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( 389 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT(
388 Handle<String> name) { 390 Handle<String> name) {
389 const int entries_count = 391 const int entries_count =
390 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); 392 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT);
391 for (int i = 0; i < entries_count; i++) { 393 for (int i = 0; i < entries_count; i++) {
392 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; 394 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i];
393 if (name->IsEqualTo(CStrVector(entry->name))) { 395 if (name->IsEqualTo(CStrVector(entry->name))) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 528 }
527 } 529 }
528 530
529 531
530 void ApiGetterEntryStub::SetCustomCache(Code* value) { 532 void ApiGetterEntryStub::SetCustomCache(Code* value) {
531 info()->set_load_stub_cache(value); 533 info()->set_load_stub_cache(value);
532 } 534 }
533 535
534 536
535 } } // namespace v8::internal 537 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698