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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-ppc.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.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_S390_LITHIUM_CODEGEN_S390_H_ 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_
6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ 6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_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/s390/lithium-gap-resolver-s390.h" 10 #include "src/crankshaft/s390/lithium-gap-resolver-s390.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // itself is emitted at the end of the generated code. 286 // itself is emitted at the end of the generated code.
287 SafepointTableBuilder safepoints_; 287 SafepointTableBuilder safepoints_;
288 288
289 // Compiler from a set of parallel moves to a sequential list of moves. 289 // Compiler from a set of parallel moves to a sequential list of moves.
290 LGapResolver resolver_; 290 LGapResolver resolver_;
291 291
292 Safepoint::Kind expected_safepoint_kind_; 292 Safepoint::Kind expected_safepoint_kind_;
293 293
294 class PushSafepointRegistersScope final BASE_EMBEDDED { 294 class PushSafepointRegistersScope final BASE_EMBEDDED {
295 public: 295 public:
296 explicit PushSafepointRegistersScope(LCodeGen* codegen) 296 explicit PushSafepointRegistersScope(LCodeGen* codegen);
297 : codegen_(codegen) {
298 DCHECK(codegen_->info()->is_calling());
299 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
300 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
301 StoreRegistersStateStub stub(codegen_->isolate());
302 codegen_->masm_->CallStub(&stub);
303 }
304 297
305 ~PushSafepointRegistersScope() { 298 ~PushSafepointRegistersScope();
306 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters);
307 RestoreRegistersStateStub stub(codegen_->isolate());
308 codegen_->masm_->CallStub(&stub);
309 codegen_->expected_safepoint_kind_ = Safepoint::kSimple;
310 }
311 299
312 private: 300 private:
313 LCodeGen* codegen_; 301 LCodeGen* codegen_;
314 }; 302 };
315 303
316 friend class LDeferredCode; 304 friend class LDeferredCode;
317 friend class LEnvironment; 305 friend class LEnvironment;
318 friend class SafepointGenerator; 306 friend class SafepointGenerator;
319 DISALLOW_COPY_AND_ASSIGN(LCodeGen); 307 DISALLOW_COPY_AND_ASSIGN(LCodeGen);
320 }; 308 };
(...skipping 24 matching lines...) Expand all
345 LCodeGen* codegen_; 333 LCodeGen* codegen_;
346 Label entry_; 334 Label entry_;
347 Label exit_; 335 Label exit_;
348 Label* external_exit_; 336 Label* external_exit_;
349 int instruction_index_; 337 int instruction_index_;
350 }; 338 };
351 } // namespace internal 339 } // namespace internal
352 } // namespace v8 340 } // namespace v8
353 341
354 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ 342 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698