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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 6624085: [Isolates] Merge 7051:7083 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 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/arm/lithium-codegen-arm.h ('k') | src/ast.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void LCodeGen::FinishCode(Handle<Code> code) { 75 void LCodeGen::FinishCode(Handle<Code> code) {
76 ASSERT(is_done()); 76 ASSERT(is_done());
77 code->set_stack_slots(StackSlotCount()); 77 code->set_stack_slots(StackSlotCount());
78 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 78 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
79 PopulateDeoptimizationData(code); 79 PopulateDeoptimizationData(code);
80 } 80 }
81 81
82 82
83 void LCodeGen::Abort(const char* format, ...) { 83 void LCodeGen::Abort(const char* format, ...) {
84 if (FLAG_trace_bailout) { 84 if (FLAG_trace_bailout) {
85 SmartPointer<char> debug_name = graph()->debug_name()->ToCString(); 85 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString());
86 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name); 86 PrintF("Aborting LCodeGen in @\"%s\": ", *name);
87 va_list arguments; 87 va_list arguments;
88 va_start(arguments, format); 88 va_start(arguments, format);
89 OS::VPrint(format, arguments); 89 OS::VPrint(format, arguments);
90 va_end(arguments); 90 va_end(arguments);
91 PrintF("\n"); 91 PrintF("\n");
92 } 92 }
93 status_ = ABORTED; 93 status_ = ABORTED;
94 } 94 }
95 95
96 96
(...skipping 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 Register result = ToRegister(instr->result()); 2435 Register result = ToRegister(instr->result());
2436 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); 2436 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset));
2437 } 2437 }
2438 2438
2439 2439
2440 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 2440 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
2441 int arity, 2441 int arity,
2442 LInstruction* instr) { 2442 LInstruction* instr) {
2443 // Change context if needed. 2443 // Change context if needed.
2444 bool change_context = 2444 bool change_context =
2445 (graph()->info()->closure()->context() != function->context()) || 2445 (info()->closure()->context() != function->context()) ||
2446 scope()->contains_with() || 2446 scope()->contains_with() ||
2447 (scope()->num_heap_slots() > 0); 2447 (scope()->num_heap_slots() > 0);
2448 if (change_context) { 2448 if (change_context) {
2449 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); 2449 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
2450 } 2450 }
2451 2451
2452 // Set r0 to arguments count if adaption is not needed. Assumes that r0 2452 // Set r0 to arguments count if adaption is not needed. Assumes that r0
2453 // is available to write to at this point. 2453 // is available to write to at this point.
2454 if (!function->NeedsArgumentsAdaption()) { 2454 if (!function->NeedsArgumentsAdaption()) {
2455 __ mov(r0, Operand(arity)); 2455 __ mov(r0, Operand(arity));
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
3843 ASSERT(!environment->HasBeenRegistered()); 3843 ASSERT(!environment->HasBeenRegistered());
3844 RegisterEnvironmentForDeoptimization(environment); 3844 RegisterEnvironmentForDeoptimization(environment);
3845 ASSERT(osr_pc_offset_ == -1); 3845 ASSERT(osr_pc_offset_ == -1);
3846 osr_pc_offset_ = masm()->pc_offset(); 3846 osr_pc_offset_ = masm()->pc_offset();
3847 } 3847 }
3848 3848
3849 3849
3850 #undef __ 3850 #undef __
3851 3851
3852 } } // namespace v8::internal 3852 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698