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

Side by Side Diff: src/factory.cc

Issue 9403009: Count ICs that have type information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix confusing --trace-opt output Created 8 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
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 143
144 Handle<AccessorPair> Factory::NewAccessorPair() { 144 Handle<AccessorPair> Factory::NewAccessorPair() {
145 CALL_HEAP_FUNCTION(isolate(), 145 CALL_HEAP_FUNCTION(isolate(),
146 isolate()->heap()->AllocateAccessorPair(), 146 isolate()->heap()->AllocateAccessorPair(),
147 AccessorPair); 147 AccessorPair);
148 } 148 }
149 149
150 150
151 Handle<TypeFeedbackInfo> Factory::NewTypeFeedbackInfo() {
152 CALL_HEAP_FUNCTION(isolate(),
153 isolate()->heap()->AllocateTypeFeedbackInfo(),
154 TypeFeedbackInfo);
155 }
156
157
151 // Symbols are created in the old generation (data space). 158 // Symbols are created in the old generation (data space).
152 Handle<String> Factory::LookupSymbol(Vector<const char> string) { 159 Handle<String> Factory::LookupSymbol(Vector<const char> string) {
153 CALL_HEAP_FUNCTION(isolate(), 160 CALL_HEAP_FUNCTION(isolate(),
154 isolate()->heap()->LookupSymbol(string), 161 isolate()->heap()->LookupSymbol(string),
155 String); 162 String);
156 } 163 }
157 164
158 // Symbols are created in the old generation (data space). 165 // Symbols are created in the old generation (data space).
159 Handle<String> Factory::LookupSymbol(Handle<String> string) { 166 Handle<String> Factory::LookupSymbol(Handle<String> string) {
160 CALL_HEAP_FUNCTION(isolate(), 167 CALL_HEAP_FUNCTION(isolate(),
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 1422
1416 1423
1417 Handle<Object> Factory::ToBoolean(bool value) { 1424 Handle<Object> Factory::ToBoolean(bool value) {
1418 return Handle<Object>(value 1425 return Handle<Object>(value
1419 ? isolate()->heap()->true_value() 1426 ? isolate()->heap()->true_value()
1420 : isolate()->heap()->false_value()); 1427 : isolate()->heap()->false_value());
1421 } 1428 }
1422 1429
1423 1430
1424 } } // namespace v8::internal 1431 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698