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

Side by Side Diff: src/codegen.cc

Issue 113458: First round of size reduction for JumpTargets. Reduce their size by... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 29 matching lines...) Expand all
40 40
41 namespace v8 { namespace internal { 41 namespace v8 { namespace internal {
42 42
43 43
44 CodeGenerator* CodeGeneratorScope::top_ = NULL; 44 CodeGenerator* CodeGeneratorScope::top_ = NULL;
45 45
46 46
47 DeferredCode::DeferredCode(CodeGenerator* generator) 47 DeferredCode::DeferredCode(CodeGenerator* generator)
48 : generator_(generator), 48 : generator_(generator),
49 masm_(generator->masm()), 49 masm_(generator->masm()),
50 enter_(generator), 50 exit_(JumpTarget::BIDIRECTIONAL),
51 exit_(generator, JumpTarget::BIDIRECTIONAL),
52 statement_position_(masm_->current_statement_position()), 51 statement_position_(masm_->current_statement_position()),
53 position_(masm_->current_position()) { 52 position_(masm_->current_position()) {
54 generator->AddDeferred(this); 53 generator->AddDeferred(this);
55 ASSERT(statement_position_ != RelocInfo::kNoPosition); 54 ASSERT(statement_position_ != RelocInfo::kNoPosition);
56 ASSERT(position_ != RelocInfo::kNoPosition); 55 ASSERT(position_ != RelocInfo::kNoPosition);
57 #ifdef DEBUG 56 #ifdef DEBUG
58 comment_ = ""; 57 comment_ = "";
59 #endif 58 #endif
60 } 59 }
61 60
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 632 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
634 switch (type_) { 633 switch (type_) {
635 case READ_LENGTH: GenerateReadLength(masm); break; 634 case READ_LENGTH: GenerateReadLength(masm); break;
636 case READ_ELEMENT: GenerateReadElement(masm); break; 635 case READ_ELEMENT: GenerateReadElement(masm); break;
637 case NEW_OBJECT: GenerateNewObject(masm); break; 636 case NEW_OBJECT: GenerateNewObject(masm); break;
638 } 637 }
639 } 638 }
640 639
641 640
642 } } // namespace v8::internal 641 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/jump-target-arm.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | src/jump-target.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698