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

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

Issue 10443114: Progress towards making Zones independent of Isolates and Threads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits and rebase on current bleeding_edge Created 8 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/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 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // |>------------ translation_size ------------<| 624 // |>------------ translation_size ------------<|
625 625
626 int frame_count = 0; 626 int frame_count = 0;
627 int jsframe_count = 0; 627 int jsframe_count = 0;
628 for (LEnvironment* e = environment; e != NULL; e = e->outer()) { 628 for (LEnvironment* e = environment; e != NULL; e = e->outer()) {
629 ++frame_count; 629 ++frame_count;
630 if (e->frame_type() == JS_FUNCTION) { 630 if (e->frame_type() == JS_FUNCTION) {
631 ++jsframe_count; 631 ++jsframe_count;
632 } 632 }
633 } 633 }
634 Translation translation(&translations_, frame_count, jsframe_count); 634 Translation translation(&translations_, frame_count, jsframe_count,
635 zone());
635 WriteTranslation(environment, &translation); 636 WriteTranslation(environment, &translation);
636 int deoptimization_index = deoptimizations_.length(); 637 int deoptimization_index = deoptimizations_.length();
637 int pc_offset = masm()->pc_offset(); 638 int pc_offset = masm()->pc_offset();
638 environment->Register(deoptimization_index, 639 environment->Register(deoptimization_index,
639 translation.index(), 640 translation.index(),
640 (mode == Safepoint::kLazyDeopt) ? pc_offset : -1); 641 (mode == Safepoint::kLazyDeopt) ? pc_offset : -1);
641 deoptimizations_.Add(environment); 642 deoptimizations_.Add(environment);
642 } 643 }
643 } 644 }
644 645
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 int arguments, 755 int arguments,
755 Safepoint::DeoptMode deopt_mode) { 756 Safepoint::DeoptMode deopt_mode) {
756 ASSERT(expected_safepoint_kind_ == kind); 757 ASSERT(expected_safepoint_kind_ == kind);
757 758
758 const ZoneList<LOperand*>* operands = pointers->GetNormalizedOperands(); 759 const ZoneList<LOperand*>* operands = pointers->GetNormalizedOperands();
759 Safepoint safepoint = safepoints_.DefineSafepoint(masm(), 760 Safepoint safepoint = safepoints_.DefineSafepoint(masm(),
760 kind, arguments, deopt_mode); 761 kind, arguments, deopt_mode);
761 for (int i = 0; i < operands->length(); i++) { 762 for (int i = 0; i < operands->length(); i++) {
762 LOperand* pointer = operands->at(i); 763 LOperand* pointer = operands->at(i);
763 if (pointer->IsStackSlot()) { 764 if (pointer->IsStackSlot()) {
764 safepoint.DefinePointerSlot(pointer->index()); 765 safepoint.DefinePointerSlot(pointer->index(), zone());
765 } else if (pointer->IsRegister() && (kind & Safepoint::kWithRegisters)) { 766 } else if (pointer->IsRegister() && (kind & Safepoint::kWithRegisters)) {
766 safepoint.DefinePointerRegister(ToRegister(pointer)); 767 safepoint.DefinePointerRegister(ToRegister(pointer));
767 } 768 }
768 } 769 }
769 if (kind & Safepoint::kWithRegisters) { 770 if (kind & Safepoint::kWithRegisters) {
770 // Register cp always contains a pointer to the context. 771 // Register cp always contains a pointer to the context.
771 safepoint.DefinePointerRegister(cp); 772 safepoint.DefinePointerRegister(cp);
772 } 773 }
773 } 774 }
774 775
(...skipping 4582 matching lines...) Expand 10 before | Expand all | Expand 10 after
5357 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5358 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5358 __ ldr(result, FieldMemOperand(scratch, 5359 __ ldr(result, FieldMemOperand(scratch,
5359 FixedArray::kHeaderSize - kPointerSize)); 5360 FixedArray::kHeaderSize - kPointerSize));
5360 __ bind(&done); 5361 __ bind(&done);
5361 } 5362 }
5362 5363
5363 5364
5364 #undef __ 5365 #undef __
5365 5366
5366 } } // namespace v8::internal 5367 } } // 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