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

Side by Side Diff: src/objects-inl.h

Issue 12490013: Deoptimizer support for hydrogen stubs that accept a variable number of arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Deoptimizer and BuildGraph() support for variable argument stubs Created 7 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 3825 matching lines...) Expand 10 before | Expand all | Expand 10 after
3836 3836
3837 void Code::set_has_function_cache(bool flag) { 3837 void Code::set_has_function_cache(bool flag) {
3838 ASSERT(kind() == STUB); 3838 ASSERT(kind() == STUB);
3839 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); 3839 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset);
3840 int updated = HasFunctionCacheField::update(previous, flag); 3840 int updated = HasFunctionCacheField::update(previous, flag);
3841 WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); 3841 WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated);
3842 } 3842 }
3843 3843
3844 3844
3845 bool Code::marked_for_deoptimization() { 3845 bool Code::marked_for_deoptimization() {
3846 ASSERT(kind() == OPTIMIZED_FUNCTION); 3846 ASSERT(kind() == OPTIMIZED_FUNCTION || kind() == COMPILED_STUB);
danno 2013/03/20 21:07:33 Why is this additional check needed?
mvstanton 2013/03/21 11:47:35 I removed it, and spoke with Ulan. In fact we shou
3847 return MarkedForDeoptimizationField::decode( 3847 return MarkedForDeoptimizationField::decode(
3848 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); 3848 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset));
3849 } 3849 }
3850 3850
3851 3851
3852 void Code::set_marked_for_deoptimization(bool flag) { 3852 void Code::set_marked_for_deoptimization(bool flag) {
3853 ASSERT(kind() == OPTIMIZED_FUNCTION); 3853 ASSERT(kind() == OPTIMIZED_FUNCTION);
3854 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); 3854 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset);
3855 int updated = MarkedForDeoptimizationField::update(previous, flag); 3855 int updated = MarkedForDeoptimizationField::update(previous, flag);
3856 WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); 3856 WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated);
(...skipping 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after
6015 #undef WRITE_UINT32_FIELD 6015 #undef WRITE_UINT32_FIELD
6016 #undef READ_SHORT_FIELD 6016 #undef READ_SHORT_FIELD
6017 #undef WRITE_SHORT_FIELD 6017 #undef WRITE_SHORT_FIELD
6018 #undef READ_BYTE_FIELD 6018 #undef READ_BYTE_FIELD
6019 #undef WRITE_BYTE_FIELD 6019 #undef WRITE_BYTE_FIELD
6020 6020
6021 6021
6022 } } // namespace v8::internal 6022 } } // namespace v8::internal
6023 6023
6024 #endif // V8_OBJECTS_INL_H_ 6024 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/frames.cc ('K') | « src/ia32/code-stubs-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698