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

Side by Side Diff: src/ia32/fast-codegen-ia32.cc

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced Created 10 years, 6 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/ia32/codegen-ia32.cc ('k') | src/ia32/frames-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 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 CodeGenerator::MakeCodePrologue(info); 441 CodeGenerator::MakeCodePrologue(info);
442 442
443 const int kInitialBufferSize = 4 * KB; 443 const int kInitialBufferSize = 4 * KB;
444 MacroAssembler masm(NULL, kInitialBufferSize); 444 MacroAssembler masm(NULL, kInitialBufferSize);
445 445
446 // Generate the fast-path code. 446 // Generate the fast-path code.
447 FastCodeGenerator fast_cgen(&masm); 447 FastCodeGenerator fast_cgen(&masm);
448 fast_cgen.Generate(info); 448 fast_cgen.Generate(info);
449 if (fast_cgen.HasStackOverflow()) { 449 if (fast_cgen.HasStackOverflow()) {
450 ASSERT(!Top::has_pending_exception()); 450 ASSERT(!Isolate::Current()->has_pending_exception());
451 return Handle<Code>::null(); 451 return Handle<Code>::null();
452 } 452 }
453 453
454 // Generate the full code for the function in bailout mode, using the same 454 // Generate the full code for the function in bailout mode, using the same
455 // macro assembler. 455 // macro assembler.
456 CodeGenerator cgen(&masm); 456 CodeGenerator cgen(&masm);
457 CodeGeneratorScope scope(&cgen); 457 CodeGeneratorScope scope(&cgen);
458 info->set_mode(CompilationInfo::SECONDARY); 458 info->set_mode(CompilationInfo::SECONDARY);
459 cgen.Generate(info); 459 cgen.Generate(info);
460 if (cgen.HasStackOverflow()) { 460 if (cgen.HasStackOverflow()) {
461 ASSERT(!Top::has_pending_exception()); 461 ASSERT(!Isolate::Current()->has_pending_exception());
462 return Handle<Code>::null(); 462 return Handle<Code>::null();
463 } 463 }
464 464
465 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP); 465 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP);
466 return CodeGenerator::MakeCodeEpilogue(&masm, flags, info); 466 return CodeGenerator::MakeCodeEpilogue(&masm, flags, info);
467 } 467 }
468 468
469 469
470 Register FastCodeGenerator::accumulator0() { return eax; } 470 Register FastCodeGenerator::accumulator0() { return eax; }
471 Register FastCodeGenerator::accumulator1() { return edx; } 471 Register FastCodeGenerator::accumulator1() { return edx; }
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { 945 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) {
946 UNREACHABLE(); 946 UNREACHABLE();
947 } 947 }
948 948
949 #undef __ 949 #undef __
950 950
951 951
952 } } // namespace v8::internal 952 } } // namespace v8::internal
953 953
954 #endif // V8_TARGET_ARCH_IA32 954 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/frames-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698