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

Side by Side Diff: src/lithium.cc

Issue 194793002: [v8-dev] ARM: safepoints frame optimization (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 LAllocator allocator(values, graph); 408 LAllocator allocator(values, graph);
409 LChunkBuilder builder(info, graph, &allocator); 409 LChunkBuilder builder(info, graph, &allocator);
410 LChunk* chunk = builder.Build(); 410 LChunk* chunk = builder.Build();
411 if (chunk == NULL) return NULL; 411 if (chunk == NULL) return NULL;
412 412
413 if (!allocator.Allocate(chunk)) { 413 if (!allocator.Allocate(chunk)) {
414 info->set_bailout_reason(kNotEnoughVirtualRegistersRegalloc); 414 info->set_bailout_reason(kNotEnoughVirtualRegistersRegalloc);
415 return NULL; 415 return NULL;
416 } 416 }
417 417
418 chunk->set_allocated_double_registers( 418 chunk->set_allocated_double_registers(allocator.assigned_double_registers());
419 allocator.assigned_double_registers()); 419 chunk->set_safepoints_registers(allocator.modified_registers());
420 chunk->set_safepoints_double_registers(allocator.modified_double_registers());
420 421
421 return chunk; 422 return chunk;
422 } 423 }
423 424
424 425
425 Handle<Code> LChunk::Codegen() { 426 Handle<Code> LChunk::Codegen() {
426 MacroAssembler assembler(info()->isolate(), NULL, 0); 427 MacroAssembler assembler(info()->isolate(), NULL, 0);
427 LOG_CODE_EVENT(info()->isolate(), 428 LOG_CODE_EVENT(info()->isolate(),
428 CodeStartLinePosInfoRecordEvent( 429 CodeStartLinePosInfoRecordEvent(
429 assembler.positions_recorder())); 430 assembler.positions_recorder()));
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 609
609 610
610 LPhase::~LPhase() { 611 LPhase::~LPhase() {
611 if (ShouldProduceTraceOutput()) { 612 if (ShouldProduceTraceOutput()) {
612 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 613 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
613 } 614 }
614 } 615 }
615 616
616 617
617 } } // namespace v8::internal 618 } } // namespace v8::internal
OLDNEW
« src/arm/assembler-arm.h ('K') | « src/lithium.h ('k') | src/lithium-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698