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

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

Issue 2949103005: PPC/s390: Remove TypeFeedbackId parameters from assembler and full-code. (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | src/ppc/assembler-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 (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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 Assembler* assem_; 1260 Assembler* assem_;
1261 1261
1262 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstantPoolEntrySharingScope); 1262 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstantPoolEntrySharingScope);
1263 }; 1263 };
1264 1264
1265 // Debugging 1265 // Debugging
1266 1266
1267 // Mark address of a debug break slot. 1267 // Mark address of a debug break slot.
1268 void RecordDebugBreakSlot(RelocInfo::Mode mode); 1268 void RecordDebugBreakSlot(RelocInfo::Mode mode);
1269 1269
1270 // Record the AST id of the CallIC being compiled, so that it can be placed
1271 // in the relocation information.
1272 void SetRecordedAstId(TypeFeedbackId ast_id) {
1273 // Causes compiler to fail
1274 // DCHECK(recorded_ast_id_.IsNone());
1275 recorded_ast_id_ = ast_id;
1276 }
1277
1278 TypeFeedbackId RecordedAstId() {
1279 // Causes compiler to fail
1280 // DCHECK(!recorded_ast_id_.IsNone());
1281 return recorded_ast_id_;
1282 }
1283
1284 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); }
1285
1286 // Record a comment relocation entry that can be used by a disassembler. 1270 // Record a comment relocation entry that can be used by a disassembler.
1287 // Use --code-comments to enable. 1271 // Use --code-comments to enable.
1288 void RecordComment(const char* msg); 1272 void RecordComment(const char* msg);
1289 1273
1290 // Record a deoptimization reason that can be used by a log or cpu profiler. 1274 // Record a deoptimization reason that can be used by a log or cpu profiler.
1291 // Use --trace-deopt to enable. 1275 // Use --trace-deopt to enable.
1292 void RecordDeoptReason(DeoptimizeReason reason, SourcePosition position, 1276 void RecordDeoptReason(DeoptimizeReason reason, SourcePosition position,
1293 int id); 1277 int id);
1294 1278
1295 // Writes a single byte or word of data in the code stream. Used 1279 // Writes a single byte or word of data in the code stream. Used
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 ConstantPoolEntry::OVERFLOWED; 1353 ConstantPoolEntry::OVERFLOWED;
1370 } 1354 }
1371 1355
1372 Label* ConstantPoolPosition() { 1356 Label* ConstantPoolPosition() {
1373 return constant_pool_builder_.EmittedPosition(); 1357 return constant_pool_builder_.EmittedPosition();
1374 } 1358 }
1375 1359
1376 void EmitRelocations(); 1360 void EmitRelocations();
1377 1361
1378 protected: 1362 protected:
1379 // Relocation for a type-recording IC has the AST id added to it. This
1380 // member variable is a way to pass the information from the call site to
1381 // the relocation info.
1382 TypeFeedbackId recorded_ast_id_;
1383
1384 int buffer_space() const { return reloc_info_writer.pos() - pc_; } 1363 int buffer_space() const { return reloc_info_writer.pos() - pc_; }
1385 1364
1386 // Decode instruction(s) at pos and return backchain to previous 1365 // Decode instruction(s) at pos and return backchain to previous
1387 // label reference or kEndOfChain. 1366 // label reference or kEndOfChain.
1388 int target_at(int pos); 1367 int target_at(int pos);
1389 1368
1390 // Patch instruction(s) at pos to target target_pos (e.g. branch) 1369 // Patch instruction(s) at pos to target target_pos (e.g. branch)
1391 void target_at_put(int pos, int target_pos, bool* is_branch = nullptr); 1370 void target_at_put(int pos, int target_pos, bool* is_branch = nullptr);
1392 1371
1393 // Record reloc info for current pc_ 1372 // Record reloc info for current pc_
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 PatchingAssembler(IsolateData isolate_data, byte* address, int instructions); 1540 PatchingAssembler(IsolateData isolate_data, byte* address, int instructions);
1562 ~PatchingAssembler(); 1541 ~PatchingAssembler();
1563 1542
1564 void FlushICache(Isolate* isolate); 1543 void FlushICache(Isolate* isolate);
1565 }; 1544 };
1566 1545
1567 } // namespace internal 1546 } // namespace internal
1568 } // namespace v8 1547 } // namespace v8
1569 1548
1570 #endif // V8_PPC_ASSEMBLER_PPC_H_ 1549 #endif // V8_PPC_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « no previous file | src/ppc/assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698