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

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

Issue 11151005: Improve FastCloneShallowArray/ObjectStubs with VFP copying on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 2 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 168
169 // Single word VFP register. 169 // Single word VFP register.
170 struct SwVfpRegister { 170 struct SwVfpRegister {
171 bool is_valid() const { return 0 <= code_ && code_ < 32; } 171 bool is_valid() const { return 0 <= code_ && code_ < 32; }
172 bool is(SwVfpRegister reg) const { return code_ == reg.code_; } 172 bool is(SwVfpRegister reg) const { return code_ == reg.code_; }
173 int code() const { 173 int code() const {
174 ASSERT(is_valid()); 174 ASSERT(is_valid());
175 return code_; 175 return code_;
176 } 176 }
177 static SwVfpRegister from_code(int code) {
178 SwVfpRegister r = { code };
179 return r;
180 }
177 int bit() const { 181 int bit() const {
178 ASSERT(is_valid()); 182 ASSERT(is_valid());
179 return 1 << code_; 183 return 1 << code_;
180 } 184 }
181 void split_code(int* vm, int* m) const { 185 void split_code(int* vm, int* m) const {
182 ASSERT(is_valid()); 186 ASSERT(is_valid());
183 *m = code_ & 0x1; 187 *m = code_ & 0x1;
184 *vm = code_ >> 1; 188 *vm = code_ >> 1;
185 } 189 }
186 190
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 public: 1471 public:
1468 explicit EnsureSpace(Assembler* assembler) { 1472 explicit EnsureSpace(Assembler* assembler) {
1469 assembler->CheckBuffer(); 1473 assembler->CheckBuffer();
1470 } 1474 }
1471 }; 1475 };
1472 1476
1473 1477
1474 } } // namespace v8::internal 1478 } } // namespace v8::internal
1475 1479
1476 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1480 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698