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

Side by Side Diff: src/arm/deoptimizer-arm.cc

Issue 9139051: Cosmetic changes ("set up" is a verb, "setup" is a noun). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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/cpu-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 while (ok && input_offset >= 0) { 312 while (ok && input_offset >= 0) {
313 ok = DoOsrTranslateCommand(&iterator, &input_offset); 313 ok = DoOsrTranslateCommand(&iterator, &input_offset);
314 } 314 }
315 315
316 // If translation of any command failed, continue using the input frame. 316 // If translation of any command failed, continue using the input frame.
317 if (!ok) { 317 if (!ok) {
318 delete output_[0]; 318 delete output_[0];
319 output_[0] = input_; 319 output_[0] = input_;
320 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_)); 320 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_));
321 } else { 321 } else {
322 // Setup the frame pointer and the context pointer. 322 // Set up the frame pointer and the context pointer.
323 output_[0]->SetRegister(fp.code(), input_->GetRegister(fp.code())); 323 output_[0]->SetRegister(fp.code(), input_->GetRegister(fp.code()));
324 output_[0]->SetRegister(cp.code(), input_->GetRegister(cp.code())); 324 output_[0]->SetRegister(cp.code(), input_->GetRegister(cp.code()));
325 325
326 unsigned pc_offset = data->OsrPcOffset()->value(); 326 unsigned pc_offset = data->OsrPcOffset()->value();
327 uint32_t pc = reinterpret_cast<uint32_t>( 327 uint32_t pc = reinterpret_cast<uint32_t>(
328 optimized_code_->entry() + pc_offset); 328 optimized_code_->entry() + pc_offset);
329 output_[0]->SetPc(pc); 329 output_[0]->SetPc(pc);
330 } 330 }
331 Code* continuation = isolate_->builtins()->builtin(Builtins::kNotifyOSR); 331 Code* continuation = isolate_->builtins()->builtin(Builtins::kNotifyOSR);
332 output_[0]->SetContinuation( 332 output_[0]->SetContinuation(
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 __ push(ip); 750 __ push(ip);
751 __ b(&done); 751 __ b(&done);
752 ASSERT(masm()->pc_offset() - start == table_entry_size_); 752 ASSERT(masm()->pc_offset() - start == table_entry_size_);
753 } 753 }
754 __ bind(&done); 754 __ bind(&done);
755 } 755 }
756 756
757 #undef __ 757 #undef __
758 758
759 } } // namespace v8::internal 759 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/cpu-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698