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

Side by Side Diff: src/codegen.cc

Issue 21447: Experimental: introduce a simple mechanism to allow jump targets with... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 10 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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 20 matching lines...) Expand all
31 #include "codegen-inl.h" 31 #include "codegen-inl.h"
32 #include "debug.h" 32 #include "debug.h"
33 #include "prettyprinter.h" 33 #include "prettyprinter.h"
34 #include "scopeinfo.h" 34 #include "scopeinfo.h"
35 #include "runtime.h" 35 #include "runtime.h"
36 #include "stub-cache.h" 36 #include "stub-cache.h"
37 37
38 namespace v8 { namespace internal { 38 namespace v8 { namespace internal {
39 39
40 DeferredCode::DeferredCode(CodeGenerator* generator) 40 DeferredCode::DeferredCode(CodeGenerator* generator)
41 : masm_(generator->masm()), 41 : generator_(generator),
42 generator_(generator), 42 masm_(generator->masm()),
43 enter_(generator), 43 enter_(generator),
44 exit_(generator, JumpTarget::BIDIRECTIONAL), 44 exit_(generator, JumpTarget::BIDIRECTIONAL),
45 statement_position_(masm_->current_statement_position()), 45 statement_position_(masm_->current_statement_position()),
46 position_(masm_->current_position()) { 46 position_(masm_->current_position()) {
47 generator->AddDeferred(this); 47 generator->AddDeferred(this);
48 ASSERT(statement_position_ != RelocInfo::kNoPosition); 48 ASSERT(statement_position_ != RelocInfo::kNoPosition);
49 ASSERT(position_ != RelocInfo::kNoPosition); 49 ASSERT(position_ != RelocInfo::kNoPosition);
50 #ifdef DEBUG 50 #ifdef DEBUG
51 comment_ = ""; 51 comment_ = "";
52 #endif 52 #endif
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 563 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
564 switch (type_) { 564 switch (type_) {
565 case READ_LENGTH: GenerateReadLength(masm); break; 565 case READ_LENGTH: GenerateReadLength(masm); break;
566 case READ_ELEMENT: GenerateReadElement(masm); break; 566 case READ_ELEMENT: GenerateReadElement(masm); break;
567 case NEW_OBJECT: GenerateNewObject(masm); break; 567 case NEW_OBJECT: GenerateNewObject(masm); break;
568 } 568 }
569 } 569 }
570 570
571 571
572 } } // namespace v8::internal 572 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698