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

Side by Side Diff: src/mips/assembler-mips.h

Issue 959203002: CpuProfiler: replace raw position with SourcePosition for DeoptReason (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for win32 Created 5 years, 9 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
« no previous file with comments | « src/lithium-codegen.cc ('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 (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 23 matching lines...) Expand all
34 34
35 35
36 #ifndef V8_MIPS_ASSEMBLER_MIPS_H_ 36 #ifndef V8_MIPS_ASSEMBLER_MIPS_H_
37 #define V8_MIPS_ASSEMBLER_MIPS_H_ 37 #define V8_MIPS_ASSEMBLER_MIPS_H_
38 38
39 #include <stdio.h> 39 #include <stdio.h>
40 40
41 #include <set> 41 #include <set>
42 42
43 #include "src/assembler.h" 43 #include "src/assembler.h"
44 #include "src/compiler.h"
44 #include "src/mips/constants-mips.h" 45 #include "src/mips/constants-mips.h"
45 #include "src/serialize.h" 46 #include "src/serialize.h"
46 47
47 namespace v8 { 48 namespace v8 {
48 namespace internal { 49 namespace internal {
49 50
50 // CPU Registers. 51 // CPU Registers.
51 // 52 //
52 // 1) We would prefer to use an enum, but enum values are assignment- 53 // 1) We would prefer to use an enum, but enum values are assignment-
53 // compatible with int, which has caused code-generation bugs. 54 // compatible with int, which has caused code-generation bugs.
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 } 1014 }
1014 1015
1015 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); } 1016 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); }
1016 1017
1017 // Record a comment relocation entry that can be used by a disassembler. 1018 // Record a comment relocation entry that can be used by a disassembler.
1018 // Use --code-comments to enable. 1019 // Use --code-comments to enable.
1019 void RecordComment(const char* msg); 1020 void RecordComment(const char* msg);
1020 1021
1021 // Record a deoptimization reason that can be used by a log or cpu profiler. 1022 // Record a deoptimization reason that can be used by a log or cpu profiler.
1022 // Use --trace-deopt to enable. 1023 // Use --trace-deopt to enable.
1023 void RecordDeoptReason(const int reason, const int raw_position); 1024 void RecordDeoptReason(const int reason, const SourcePosition position);
1024 1025
1025 1026
1026 static int RelocateInternalReference(RelocInfo::Mode rmode, byte* pc, 1027 static int RelocateInternalReference(RelocInfo::Mode rmode, byte* pc,
1027 intptr_t pc_delta); 1028 intptr_t pc_delta);
1028 1029
1029 // Writes a single byte or word of data in the code stream. Used for 1030 // Writes a single byte or word of data in the code stream. Used for
1030 // inline tables, e.g., jump-tables. 1031 // inline tables, e.g., jump-tables.
1031 void db(uint8_t data); 1032 void db(uint8_t data);
1032 void dd(uint32_t data); 1033 void dd(uint32_t data);
1033 void dd(Label* label); 1034 void dd(Label* label);
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 class EnsureSpace BASE_EMBEDDED { 1388 class EnsureSpace BASE_EMBEDDED {
1388 public: 1389 public:
1389 explicit EnsureSpace(Assembler* assembler) { 1390 explicit EnsureSpace(Assembler* assembler) {
1390 assembler->CheckBuffer(); 1391 assembler->CheckBuffer();
1391 } 1392 }
1392 }; 1393 };
1393 1394
1394 } } // namespace v8::internal 1395 } } // namespace v8::internal
1395 1396
1396 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1397 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/lithium-codegen.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698