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

Side by Side Diff: src/handles.h

Issue 3533007: Remove some unused fields from class CompilationInfo. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « src/compiler.h ('k') | src/handles.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // Does lazy compilation of the given function. Returns true on success and 338 // Does lazy compilation of the given function. Returns true on success and
339 // false if the compilation resulted in a stack overflow. 339 // false if the compilation resulted in a stack overflow.
340 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; 340 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION };
341 341
342 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, 342 bool EnsureCompiled(Handle<SharedFunctionInfo> shared,
343 ClearExceptionFlag flag); 343 ClearExceptionFlag flag);
344 344
345 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, 345 bool CompileLazyShared(Handle<SharedFunctionInfo> shared,
346 ClearExceptionFlag flag); 346 ClearExceptionFlag flag);
347 347
348 bool CompileLazy(Handle<JSFunction> function, 348 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag);
349 Handle<Object> receiver,
350 ClearExceptionFlag flag);
351 349
352 bool CompileLazyInLoop(Handle<JSFunction> function, 350 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag);
353 Handle<Object> receiver,
354 ClearExceptionFlag flag);
355 351
356 class NoHandleAllocation BASE_EMBEDDED { 352 class NoHandleAllocation BASE_EMBEDDED {
357 public: 353 public:
358 #ifndef DEBUG 354 #ifndef DEBUG
359 NoHandleAllocation() {} 355 NoHandleAllocation() {}
360 ~NoHandleAllocation() {} 356 ~NoHandleAllocation() {}
361 #else 357 #else
362 inline NoHandleAllocation(); 358 inline NoHandleAllocation();
363 inline ~NoHandleAllocation(); 359 inline ~NoHandleAllocation();
364 private: 360 private:
(...skipping 16 matching lines...) Expand all
381 private: 377 private:
382 bool has_been_transformed_; // Tells whether the object has been transformed. 378 bool has_been_transformed_; // Tells whether the object has been transformed.
383 int unused_property_fields_; // Captures the unused number of field. 379 int unused_property_fields_; // Captures the unused number of field.
384 Handle<JSObject> object_; // The object being optimized. 380 Handle<JSObject> object_; // The object being optimized.
385 }; 381 };
386 382
387 383
388 } } // namespace v8::internal 384 } } // namespace v8::internal
389 385
390 #endif // V8_HANDLES_H_ 386 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698