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

Side by Side Diff: src/assembler.h

Issue 707803002: [turbofan] move label generation to code generator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « no previous file | src/compiler/arm/code-generator-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); 236 DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
237 }; 237 };
238 238
239 239
240 // ----------------------------------------------------------------------------- 240 // -----------------------------------------------------------------------------
241 // Labels represent pc locations; they are typically jump or call targets. 241 // Labels represent pc locations; they are typically jump or call targets.
242 // After declaration, a label can be freely used to denote known or (yet) 242 // After declaration, a label can be freely used to denote known or (yet)
243 // unknown pc location. Assembler::bind() is used to bind a label to the 243 // unknown pc location. Assembler::bind() is used to bind a label to the
244 // current pc. A label can be bound only once. 244 // current pc. A label can be bound only once.
245 245
246 class Label BASE_EMBEDDED { 246 class Label {
247 public: 247 public:
248 enum Distance { 248 enum Distance {
249 kNear, kFar 249 kNear, kFar
250 }; 250 };
251 251
252 INLINE(Label()) { 252 INLINE(Label()) {
253 Unuse(); 253 Unuse();
254 UnuseNear(); 254 UnuseNear();
255 } 255 }
256 256
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 NullCallWrapper() { } 1130 NullCallWrapper() { }
1131 virtual ~NullCallWrapper() { } 1131 virtual ~NullCallWrapper() { }
1132 virtual void BeforeCall(int call_size) const { } 1132 virtual void BeforeCall(int call_size) const { }
1133 virtual void AfterCall() const { } 1133 virtual void AfterCall() const { }
1134 }; 1134 };
1135 1135
1136 1136
1137 } } // namespace v8::internal 1137 } } // namespace v8::internal
1138 1138
1139 #endif // V8_ASSEMBLER_H_ 1139 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698