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

Side by Side Diff: src/arm/lithium-arm.h

Issue 72813004: Fixed crashes exposed though fuzzing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.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 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 } 1394 }
1395 1395
1396 LOperand* string() const { return inputs_[0]; } 1396 LOperand* string() const { return inputs_[0]; }
1397 LOperand* index() const { return inputs_[1]; } 1397 LOperand* index() const { return inputs_[1]; }
1398 1398
1399 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") 1399 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
1400 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) 1400 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
1401 }; 1401 };
1402 1402
1403 1403
1404 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1404 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 4, 0> {
1405 public: 1405 public:
1406 LSeqStringSetChar(LOperand* string, 1406 LSeqStringSetChar(LOperand* context,
1407 LOperand* string,
1407 LOperand* index, 1408 LOperand* index,
1408 LOperand* value) { 1409 LOperand* value) {
1409 inputs_[0] = string; 1410 inputs_[0] = context;
1410 inputs_[1] = index; 1411 inputs_[1] = string;
1411 inputs_[2] = value; 1412 inputs_[2] = index;
1413 inputs_[3] = value;
1412 } 1414 }
1413 1415
1414 LOperand* string() { return inputs_[0]; } 1416 LOperand* string() { return inputs_[1]; }
1415 LOperand* index() { return inputs_[1]; } 1417 LOperand* index() { return inputs_[2]; }
1416 LOperand* value() { return inputs_[2]; } 1418 LOperand* value() { return inputs_[3]; }
1417 1419
1418 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1420 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1419 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1421 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1420 }; 1422 };
1421 1423
1422 1424
1423 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1425 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1424 public: 1426 public:
1425 LThrow(LOperand* context, LOperand* value) { 1427 LThrow(LOperand* context, LOperand* value) {
1426 inputs_[0] = context; 1428 inputs_[0] = context;
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2936 2938
2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2938 }; 2940 };
2939 2941
2940 #undef DECLARE_HYDROGEN_ACCESSOR 2942 #undef DECLARE_HYDROGEN_ACCESSOR
2941 #undef DECLARE_CONCRETE_INSTRUCTION 2943 #undef DECLARE_CONCRETE_INSTRUCTION
2942 2944
2943 } } // namespace v8::internal 2945 } } // namespace v8::internal
2944 2946
2945 #endif // V8_ARM_LITHIUM_ARM_H_ 2947 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698