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

Side by Side Diff: src/mips/lithium-codegen-mips.h

Issue 23064017: Use V8_FINAL and V8_OVERRIDE in various places, fixing bugs revealed by them. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use V8_FINAL and V8_OVERRIDE instead. Created 7 years, 4 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
« no previous file with comments | « src/lithium.h ('k') | src/mips/lithium-codegen-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 24 matching lines...) Expand all
35 #include "scopes.h" 35 #include "scopes.h"
36 #include "v8utils.h" 36 #include "v8utils.h"
37 37
38 namespace v8 { 38 namespace v8 {
39 namespace internal { 39 namespace internal {
40 40
41 // Forward declarations. 41 // Forward declarations.
42 class LDeferredCode; 42 class LDeferredCode;
43 class SafepointGenerator; 43 class SafepointGenerator;
44 44
45 class LCodeGen FINAL BASE_EMBEDDED { 45 class LCodeGen V8_FINAL BASE_EMBEDDED {
46 public: 46 public:
47 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) 47 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info)
48 : zone_(info->zone()), 48 : zone_(info->zone()),
49 chunk_(static_cast<LPlatformChunk*>(chunk)), 49 chunk_(static_cast<LPlatformChunk*>(chunk)),
50 masm_(assembler), 50 masm_(assembler),
51 info_(info), 51 info_(info),
52 current_block_(-1), 52 current_block_(-1),
53 current_instruction_(-1), 53 current_instruction_(-1),
54 instructions_(chunk->instructions()), 54 instructions_(chunk->instructions()),
55 deoptimizations_(4, info->zone()), 55 deoptimizations_(4, info->zone()),
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // itself is emitted at the end of the generated code. 434 // itself is emitted at the end of the generated code.
435 SafepointTableBuilder safepoints_; 435 SafepointTableBuilder safepoints_;
436 436
437 // Compiler from a set of parallel moves to a sequential list of moves. 437 // Compiler from a set of parallel moves to a sequential list of moves.
438 LGapResolver resolver_; 438 LGapResolver resolver_;
439 439
440 Safepoint::Kind expected_safepoint_kind_; 440 Safepoint::Kind expected_safepoint_kind_;
441 441
442 int old_position_; 442 int old_position_;
443 443
444 class PushSafepointRegistersScope FINAL BASE_EMBEDDED { 444 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED {
445 public: 445 public:
446 PushSafepointRegistersScope(LCodeGen* codegen, 446 PushSafepointRegistersScope(LCodeGen* codegen,
447 Safepoint::Kind kind) 447 Safepoint::Kind kind)
448 : codegen_(codegen) { 448 : codegen_(codegen) {
449 ASSERT(codegen_->info()->is_calling()); 449 ASSERT(codegen_->info()->is_calling());
450 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 450 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
451 codegen_->expected_safepoint_kind_ = kind; 451 codegen_->expected_safepoint_kind_ = kind;
452 452
453 switch (codegen_->expected_safepoint_kind_) { 453 switch (codegen_->expected_safepoint_kind_) {
454 case Safepoint::kWithRegisters: 454 case Safepoint::kWithRegisters:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 LCodeGen* codegen_; 515 LCodeGen* codegen_;
516 Label entry_; 516 Label entry_;
517 Label exit_; 517 Label exit_;
518 Label* external_exit_; 518 Label* external_exit_;
519 int instruction_index_; 519 int instruction_index_;
520 }; 520 };
521 521
522 } } // namespace v8::internal 522 } } // namespace v8::internal
523 523
524 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 524 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698