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

Side by Side Diff: src/crankshaft/ppc/lithium-codegen-ppc.h

Issue 2498563002: [cleanup] Replace ToBooleanICStub::Types with ToBooleanHints (Closed)
Patch Set: Created 4 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
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/crankshaft/lithium-codegen.h" 9 #include "src/crankshaft/lithium-codegen.h"
10 #include "src/crankshaft/ppc/lithium-gap-resolver-ppc.h" 10 #include "src/crankshaft/ppc/lithium-gap-resolver-ppc.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // itself is emitted at the end of the generated code. 287 // itself is emitted at the end of the generated code.
288 SafepointTableBuilder safepoints_; 288 SafepointTableBuilder safepoints_;
289 289
290 // Compiler from a set of parallel moves to a sequential list of moves. 290 // Compiler from a set of parallel moves to a sequential list of moves.
291 LGapResolver resolver_; 291 LGapResolver resolver_;
292 292
293 Safepoint::Kind expected_safepoint_kind_; 293 Safepoint::Kind expected_safepoint_kind_;
294 294
295 class PushSafepointRegistersScope final BASE_EMBEDDED { 295 class PushSafepointRegistersScope final BASE_EMBEDDED {
296 public: 296 public:
297 explicit PushSafepointRegistersScope(LCodeGen* codegen) 297 explicit PushSafepointRegistersScope(LCodeGen* codegen);
298 : codegen_(codegen) {
299 DCHECK(codegen_->info()->is_calling());
300 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
301 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
302 StoreRegistersStateStub stub(codegen_->isolate());
303 codegen_->masm_->CallStub(&stub);
304 }
305 298
306 ~PushSafepointRegistersScope() { 299 ~PushSafepointRegistersScope();
307 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters);
308 RestoreRegistersStateStub stub(codegen_->isolate());
309 codegen_->masm_->CallStub(&stub);
310 codegen_->expected_safepoint_kind_ = Safepoint::kSimple;
311 }
312 300
313 private: 301 private:
314 LCodeGen* codegen_; 302 LCodeGen* codegen_;
315 }; 303 };
316 304
317 friend class LDeferredCode; 305 friend class LDeferredCode;
318 friend class LEnvironment; 306 friend class LEnvironment;
319 friend class SafepointGenerator; 307 friend class SafepointGenerator;
320 DISALLOW_COPY_AND_ASSIGN(LCodeGen); 308 DISALLOW_COPY_AND_ASSIGN(LCodeGen);
321 }; 309 };
(...skipping 25 matching lines...) Expand all
347 LCodeGen* codegen_; 335 LCodeGen* codegen_;
348 Label entry_; 336 Label entry_;
349 Label exit_; 337 Label exit_;
350 Label* external_exit_; 338 Label* external_exit_;
351 int instruction_index_; 339 int instruction_index_;
352 }; 340 };
353 } // namespace internal 341 } // namespace internal
354 } // namespace v8 342 } // namespace v8
355 343
356 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ 344 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698