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

Side by Side Diff: src/a64/codegen-a64.h

Issue 172483002: A64: Fix int32 use in Lithium string functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix typo in assertion. Created 6 years, 10 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/a64/code-stubs-a64.cc ('k') | src/a64/codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 20 matching lines...) Expand all
31 #include "ast.h" 31 #include "ast.h"
32 #include "ic-inl.h" 32 #include "ic-inl.h"
33 33
34 namespace v8 { 34 namespace v8 {
35 namespace internal { 35 namespace internal {
36 36
37 class StringCharLoadGenerator : public AllStatic { 37 class StringCharLoadGenerator : public AllStatic {
38 public: 38 public:
39 // Generates the code for handling different string types and loading the 39 // Generates the code for handling different string types and loading the
40 // indexed character into |result|. We expect |index| as untagged input and 40 // indexed character into |result|. We expect |index| as untagged input and
41 // |result| as untagged output. 41 // |result| as untagged output. Register index is asserted to be a 32-bit W
42 // register.
42 static void Generate(MacroAssembler* masm, 43 static void Generate(MacroAssembler* masm,
43 Register string, 44 Register string,
44 Register index, 45 Register index,
45 Register result, 46 Register result,
46 Label* call_runtime); 47 Label* call_runtime);
47 48
48 private: 49 private:
49 DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator); 50 DISALLOW_COPY_AND_ASSIGN(StringCharLoadGenerator);
50 }; 51 };
51 52
52 53
53 class MathExpGenerator : public AllStatic { 54 class MathExpGenerator : public AllStatic {
54 public: 55 public:
55 static void EmitMathExp(MacroAssembler* masm, 56 static void EmitMathExp(MacroAssembler* masm,
56 DoubleRegister input, 57 DoubleRegister input,
57 DoubleRegister result, 58 DoubleRegister result,
58 DoubleRegister double_scratch1, 59 DoubleRegister double_scratch1,
59 DoubleRegister double_scratch2, 60 DoubleRegister double_scratch2,
60 Register temp1, 61 Register temp1,
61 Register temp2, 62 Register temp2,
62 Register temp3); 63 Register temp3);
63 64
64 private: 65 private:
65 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); 66 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator);
66 }; 67 };
67 68
68 } } // namespace v8::internal 69 } } // namespace v8::internal
69 70
70 #endif // V8_A64_CODEGEN_A64_H_ 71 #endif // V8_A64_CODEGEN_A64_H_
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698