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

Side by Side Diff: src/register-allocator-ia32.h

Issue 17615: Experimental: use register allocation in the code for keyed property (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 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
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // The copy constructor and assignment operators could each create a new 63 // The copy constructor and assignment operators could each create a new
64 // register reference. 64 // register reference.
65 Result(const Result& other) { 65 Result(const Result& other) {
66 other.CopyTo(this); 66 other.CopyTo(this);
67 } 67 }
68 68
69 Result& operator=(const Result& other) { 69 Result& operator=(const Result& other) {
70 if (this != &other) { 70 if (this != &other) {
71 Unuse(); 71 Unuse();
72 other.CopyTo(this); 72 other.CopyTo(this);
73 // other.Unuse();
74 } 73 }
75 return *this; 74 return *this;
76 } 75 }
77 76
78 ~Result() { Unuse(); } 77 ~Result() { Unuse(); }
79 78
80 void Unuse(); 79 void Unuse();
81 80
82 Type type() const { return type_; } 81 Type type() const { return type_; }
83 82
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 221 }
223 222
224 private: 223 private:
225 CodeGenerator* cgen_; 224 CodeGenerator* cgen_;
226 RegisterFile registers_; 225 RegisterFile registers_;
227 }; 226 };
228 227
229 } } // namespace v8::internal 228 } } // namespace v8::internal
230 229
231 #endif // V8_REGISTER_ALLOCATOR_IA32_H_ 230 #endif // V8_REGISTER_ALLOCATOR_IA32_H_
OLDNEW
« src/codegen-ia32.cc ('K') | « src/codegen-ia32.cc ('k') | src/virtual-frame-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698