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

Side by Side Diff: src/codegen.cc

Issue 844006: Merge changes up to V8 version 2.1.3 into the partial snapshots (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen-inl.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 21 matching lines...) Expand all
32 #include "compiler.h" 32 #include "compiler.h"
33 #include "debug.h" 33 #include "debug.h"
34 #include "liveedit.h" 34 #include "liveedit.h"
35 #include "oprofile-agent.h" 35 #include "oprofile-agent.h"
36 #include "prettyprinter.h" 36 #include "prettyprinter.h"
37 #include "register-allocator-inl.h" 37 #include "register-allocator-inl.h"
38 #include "rewriter.h" 38 #include "rewriter.h"
39 #include "runtime.h" 39 #include "runtime.h"
40 #include "scopeinfo.h" 40 #include "scopeinfo.h"
41 #include "stub-cache.h" 41 #include "stub-cache.h"
42 #include "virtual-frame-inl.h"
42 43
43 namespace v8 { 44 namespace v8 {
44 namespace internal { 45 namespace internal {
45 46
46 #define __ ACCESS_MASM(masm_) 47 #define __ ACCESS_MASM(masm_)
47 48
48 #ifdef DEBUG 49 #ifdef DEBUG
49 50
50 Comment::Comment(MacroAssembler* masm, const char* msg) 51 Comment::Comment(MacroAssembler* masm, const char* msg)
51 : masm_(masm), msg_(msg) { 52 : masm_(masm), msg_(msg) {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 {&CodeGenerator::GenerateIsNonNegativeSmi, "_IsNonNegativeSmi"}, 362 {&CodeGenerator::GenerateIsNonNegativeSmi, "_IsNonNegativeSmi"},
362 {&CodeGenerator::GenerateIsArray, "_IsArray"}, 363 {&CodeGenerator::GenerateIsArray, "_IsArray"},
363 {&CodeGenerator::GenerateIsRegExp, "_IsRegExp"}, 364 {&CodeGenerator::GenerateIsRegExp, "_IsRegExp"},
364 {&CodeGenerator::GenerateIsConstructCall, "_IsConstructCall"}, 365 {&CodeGenerator::GenerateIsConstructCall, "_IsConstructCall"},
365 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, 366 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"},
366 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, 367 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"},
367 {&CodeGenerator::GenerateClassOf, "_ClassOf"}, 368 {&CodeGenerator::GenerateClassOf, "_ClassOf"},
368 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, 369 {&CodeGenerator::GenerateValueOf, "_ValueOf"},
369 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, 370 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"},
370 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, 371 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"},
372 {&CodeGenerator::GenerateCharFromCode, "_CharFromCode"},
371 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, 373 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"},
372 {&CodeGenerator::GenerateLog, "_Log"}, 374 {&CodeGenerator::GenerateLog, "_Log"},
373 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, 375 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"},
374 {&CodeGenerator::GenerateIsObject, "_IsObject"}, 376 {&CodeGenerator::GenerateIsObject, "_IsObject"},
375 {&CodeGenerator::GenerateIsFunction, "_IsFunction"}, 377 {&CodeGenerator::GenerateIsFunction, "_IsFunction"},
376 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"}, 378 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"},
377 {&CodeGenerator::GenerateStringAdd, "_StringAdd"}, 379 {&CodeGenerator::GenerateStringAdd, "_StringAdd"},
378 {&CodeGenerator::GenerateSubString, "_SubString"}, 380 {&CodeGenerator::GenerateSubString, "_SubString"},
379 {&CodeGenerator::GenerateStringCompare, "_StringCompare"}, 381 {&CodeGenerator::GenerateStringCompare, "_StringCompare"},
380 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"}, 382 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"},
381 {&CodeGenerator::GenerateNumberToString, "_NumberToString"}, 383 {&CodeGenerator::GenerateNumberToString, "_NumberToString"},
384 {&CodeGenerator::GenerateMathPow, "_Math_pow"},
382 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, 385 {&CodeGenerator::GenerateMathSin, "_Math_sin"},
383 {&CodeGenerator::GenerateMathCos, "_Math_cos"}, 386 {&CodeGenerator::GenerateMathCos, "_Math_cos"},
387 {&CodeGenerator::GenerateMathSqrt, "_Math_sqrt"},
384 }; 388 };
385 389
386 390
387 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( 391 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT(
388 Handle<String> name) { 392 Handle<String> name) {
389 const int entries_count = 393 const int entries_count =
390 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); 394 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT);
391 for (int i = 0; i < entries_count; i++) { 395 for (int i = 0; i < entries_count; i++) {
392 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; 396 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i];
393 if (name->IsEqualTo(CStrVector(entry->name))) { 397 if (name->IsEqualTo(CStrVector(entry->name))) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 530 }
527 } 531 }
528 532
529 533
530 void ApiGetterEntryStub::SetCustomCache(Code* value) { 534 void ApiGetterEntryStub::SetCustomCache(Code* value) {
531 info()->set_load_stub_cache(value); 535 info()->set_load_stub_cache(value);
532 } 536 }
533 537
534 538
535 } } // namespace v8::internal 539 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698