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

Side by Side Diff: src/objects.h

Issue 9814006: First implementation of fast path for instantiation of array literals composed of doubles. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed core review comments. Created 8 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 | Annotate | Revision Log
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 2322 matching lines...) Expand 10 before | Expand all | Expand 10 after
2333 private: 2333 private:
2334 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); 2334 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray);
2335 }; 2335 };
2336 2336
2337 2337
2338 // FixedDoubleArray describes fixed-sized arrays with element type double. 2338 // FixedDoubleArray describes fixed-sized arrays with element type double.
2339 class FixedDoubleArray: public FixedArrayBase { 2339 class FixedDoubleArray: public FixedArrayBase {
2340 public: 2340 public:
2341 // Setter and getter for elements. 2341 // Setter and getter for elements.
2342 inline double get_scalar(int index); 2342 inline double get_scalar(int index);
2343 inline int64_t get_representation(int index);
2343 MUST_USE_RESULT inline MaybeObject* get(int index); 2344 MUST_USE_RESULT inline MaybeObject* get(int index);
2344 inline void set(int index, double value); 2345 inline void set(int index, double value);
2345 inline void set_the_hole(int index); 2346 inline void set_the_hole(int index);
2346 2347
2347 // Checking for the hole. 2348 // Checking for the hole.
2348 inline bool is_the_hole(int index); 2349 inline bool is_the_hole(int index);
2349 2350
2350 // Copy operations 2351 // Copy operations
2351 MUST_USE_RESULT inline MaybeObject* Copy(); 2352 MUST_USE_RESULT inline MaybeObject* Copy();
2352 2353
(...skipping 6226 matching lines...) Expand 10 before | Expand all | Expand 10 after
8579 } else { 8580 } else {
8580 value &= ~(1 << bit_position); 8581 value &= ~(1 << bit_position);
8581 } 8582 }
8582 return value; 8583 return value;
8583 } 8584 }
8584 }; 8585 };
8585 8586
8586 } } // namespace v8::internal 8587 } } // namespace v8::internal
8587 8588
8588 #endif // V8_OBJECTS_H_ 8589 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698