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

Side by Side Diff: src/codegen.cc

Issue 596122: Some string optimizations: (Closed)
Patch Set: Undo unnecessary optimizations. Created 10 years, 10 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 // Special cases: These 'runtime calls' manipulate the current 354 // Special cases: These 'runtime calls' manipulate the current
355 // frame and are only used 1 or two places, so we generate them 355 // frame and are only used 1 or two places, so we generate them
356 // inline instead of generating calls to them. They are used 356 // inline instead of generating calls to them. They are used
357 // for implementing Function.prototype.call() and 357 // for implementing Function.prototype.call() and
358 // Function.prototype.apply(). 358 // Function.prototype.apply().
359 CodeGenerator::InlineRuntimeLUT CodeGenerator::kInlineRuntimeLUT[] = { 359 CodeGenerator::InlineRuntimeLUT CodeGenerator::kInlineRuntimeLUT[] = {
360 {&CodeGenerator::GenerateIsSmi, "_IsSmi"}, 360 {&CodeGenerator::GenerateIsSmi, "_IsSmi"},
361 {&CodeGenerator::GenerateIsNonNegativeSmi, "_IsNonNegativeSmi"}, 361 {&CodeGenerator::GenerateIsNonNegativeSmi, "_IsNonNegativeSmi"},
362 {&CodeGenerator::GenerateIsArray, "_IsArray"}, 362 {&CodeGenerator::GenerateIsArray, "_IsArray"},
363 {&CodeGenerator::GenerateIsRegExp, "_IsRegExp"},
363 {&CodeGenerator::GenerateIsConstructCall, "_IsConstructCall"}, 364 {&CodeGenerator::GenerateIsConstructCall, "_IsConstructCall"},
364 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, 365 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"},
365 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, 366 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"},
366 {&CodeGenerator::GenerateClassOf, "_ClassOf"}, 367 {&CodeGenerator::GenerateClassOf, "_ClassOf"},
367 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, 368 {&CodeGenerator::GenerateValueOf, "_ValueOf"},
368 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, 369 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"},
369 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, 370 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"},
370 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, 371 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"},
371 {&CodeGenerator::GenerateLog, "_Log"}, 372 {&CodeGenerator::GenerateLog, "_Log"},
372 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, 373 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"},
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 } 524 }
524 } 525 }
525 526
526 527
527 void ApiGetterEntryStub::SetCustomCache(Code* value) { 528 void ApiGetterEntryStub::SetCustomCache(Code* value) {
528 info()->set_load_stub_cache(value); 529 info()->set_load_stub_cache(value);
529 } 530 }
530 531
531 532
532 } } // namespace v8::internal 533 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/ia32/codegen-ia32.h » ('j') | src/macros.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698